public class JiBXParseException extends JiBXException
| Constructor and Description |
|---|
JiBXParseException(String msg,
String value)
Constructor from message.
|
JiBXParseException(String msg,
String value,
String namespace,
String tagName,
Throwable root)
Constructor from message, wrapped exception and tag name.
|
JiBXParseException(String msg,
String value,
Throwable root)
Constructor from message and wrapped exception.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
This is only used for testing purposes.
|
String |
getMessage()
Append useful parsing details onto the default message.
|
void |
setNamespace(String namespace)
Add namespace detail to the exception.
|
void |
setTagName(String tagName)
Add tag name detail to the exception.
|
getCause, getRootCause, printStackTrace, printStackTrace, printStackTraceaddSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringpublic JiBXParseException(String msg, String value)
msg - the throwers description of what's gone wrong.value - the value which was unparseable (in string format).public JiBXParseException(String msg, String value, 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(String msg, String value, String namespace, String tagName, 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(String namespace)
namespace - the namespace of the offending tag.public void setTagName(String tagName)
tagName - the name of the offending tag.public String getMessage()
getMessage in class ThrowableCopyright © 2005-2013 jibx.org. All Rights Reserved.