public class JiBXParseException extends JiBXException
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
m_namespace |
private java.lang.String |
m_tagName |
private java.lang.String |
m_value |
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, printStackTrace
private java.lang.String m_value
private java.lang.String m_namespace
private java.lang.String m_tagName
public 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.Throwable
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- what to compare against.