public class JiBXParseException extends JiBXException
| Constructor and Description |
|---|
JiBXParseException(java.lang.String msg,
java.lang.String value)
Constructor from message.
|
JiBXParseException(java.lang.String msg,
java.lang.String value,
java.lang.String namespace,
java.lang.String tagName,
java.lang.Throwable root)
Constructor from message, wrapped exception and tag name.
|
JiBXParseException(java.lang.String msg,
java.lang.String value,
java.lang.Throwable root)
Constructor from message and wrapped exception.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
This is only used for testing purposes.
|
java.lang.String |
getMessage()
Append useful parsing details onto the default message.
|
void |
setNamespace(java.lang.String namespace)
Add namespace detail to the exception.
|
void |
setTagName(java.lang.String tagName)
Add tag name detail to the exception.
|
getCause, getRootCause, printStackTrace, printStackTrace, printStackTracepublic JiBXParseException(java.lang.String msg,
java.lang.String value)
msg - the throwers description of what's gone wrong.value - the value which was unparseable (in string format).public JiBXParseException(java.lang.String msg,
java.lang.String value,
java.lang.Throwable root)
msg - the throwers description of what's gone wrong.value - the value which was unparseable (in string format).root - exception which caused this exceptionpublic JiBXParseException(java.lang.String msg,
java.lang.String value,
java.lang.String namespace,
java.lang.String tagName,
java.lang.Throwable root)
msg - message describing the exception conditionvalue - the value which was unparseable (in string format).namespace - the namespace (if any) associated with the tag.tagName - the name of the tag whose element caused the exception.root - exception which caused this exceptionpublic void setNamespace(java.lang.String namespace)
namespace - the namespace of the offending tag.public void setTagName(java.lang.String tagName)
tagName - the name of the offending tag.public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - what to compare against.