Package org.jibx.runtime
Class JiBXException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jibx.runtime.JiBXException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JiBXParseException
,RecoverableException
,UnrecoverableException
Binding exception class. This is used for all types of errors that
can be generated by the runtime.
- Author:
- Dennis M. Sosnoski
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJiBXException
(String msg) Constructor from message.JiBXException
(String msg, Throwable root) Constructor from message and wrapped exception. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Get the cause of this exception.Get root cause exception.void
Print stack trace to standard error.void
Print stack trace to stream.void
Print stack trace to writer.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Field Details
-
m_rootCause
Exception that caused this exception.
-
-
Constructor Details
-
JiBXException
Constructor from message.- Parameters:
msg
- message describing the exception condition
-
JiBXException
Constructor from message and wrapped exception.- Parameters:
msg
- message describing the exception conditionroot
- exception which caused this exception
-
-
Method Details
-
getRootCause
Get root cause exception.- Returns:
- exception that caused this exception
-
getCause
Get the cause of this exception. Provided for compatibility with later JVMs, overriding thejava.lang.Throwable
method. -
printStackTrace
public void printStackTrace()Print stack trace to standard error. This is an override of the base class method to implement exception chaining.- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
Print stack trace to stream. This is an override of the base class method to implement exception chaining.- Overrides:
printStackTrace
in classThrowable
- Parameters:
s
- stream for printing stack trace
-
printStackTrace
Print stack trace to writer. This is an override of the base class method to implement exception chaining.- Overrides:
printStackTrace
in classThrowable
- Parameters:
s
- writer for printing stack trace
-