| 
 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.jibx.runtime.JiBXException
org.jibx.runtime.JiBXParseException
public class JiBXParseException
JiBX parsing exception class. This subclass of JiBXException provides additional details when a parsing error occurs such as what tag was being parsed and what value caused the error.
| Constructor Summary | |
|---|---|
| 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. | |
| Method Summary | |
|---|---|
|  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. | 
| Methods inherited from class org.jibx.runtime.JiBXException | 
|---|
| getRootCause, printStackTrace, printStackTrace, printStackTrace | 
| Methods inherited from class java.lang.Throwable | 
|---|
| fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
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 exception
public 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 exception| Method Detail | 
|---|
public 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.
| 
 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||