public class DefaultAlignmentException extends AlignmentException implements UnstackedException
aligner| Constructor and Description |
|---|
DefaultAlignmentException(String message,
IStringAligner aligner)
Creates a exception with an aligner.
|
DefaultAlignmentException(String expected,
String received)
Creates a exception with two strings.
|
DefaultAlignmentException(String message,
String expected,
String received)
Creates a exception with two strings.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDetail(nu.xom.Element e)
Provide detailed information of alignment.
|
protected void |
addEquals(nu.xom.Element tr,
StringBuilder aT,
StringBuilder bT)
Add a common part.
|
protected void |
addNotEquals(int j,
nu.xom.Element tr,
StringBuilder aT,
StringBuilder bT)
Add a diferent part.
|
nu.xom.Node |
asNode()
The object representation as node.
|
String |
asString()
The object representation as string.
|
getAligner, getMessageaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DefaultAlignmentException(String message, String expected, String received)
message - The message.expected - The expected value.received - The received value.public DefaultAlignmentException(String expected, String received)
expected - The expected value.received - The received value.public DefaultAlignmentException(String message, IStringAligner aligner)
message - The message.aligner - The aligner.public String asString()
IPresentationasString in interface IPresentationpublic nu.xom.Node asNode()
IPresentationasNode in interface IPresentationprotected void addDetail(nu.xom.Element e)
e - The target node.protected void addEquals(nu.xom.Element tr,
StringBuilder aT,
StringBuilder bT)
tr - The line.aT - Expected.bT - Received.protected void addNotEquals(int j,
nu.xom.Element tr,
StringBuilder aT,
StringBuilder bT)
j - The index.tr - The line.aT - The expected.bT - The received.Copyright © 2016. All rights reserved.