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
public class JiBXException extends Exception
Binding exception class. This is used for all types of errors that can be generated by the runtime.- Author:
- Dennis M. Sosnoski
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JiBXException(String msg)Constructor from message.JiBXException(String msg, Throwable root)Constructor from message and wrapped exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowablegetCause()Get the cause of this exception.ThrowablegetRootCause()Get root cause exception.voidprintStackTrace()Print stack trace to standard error.voidprintStackTrace(PrintStream s)Print stack trace to stream.voidprintStackTrace(PrintWriter s)Print stack trace to writer.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
-
-
-
Constructor Detail
-
JiBXException
public JiBXException(String msg)
Constructor from message.- Parameters:
msg- message describing the exception condition
-
-
Method Detail
-
getRootCause
public Throwable getRootCause()
Get root cause exception.- Returns:
- exception that caused this exception
-
getCause
public Throwable getCause()
Get the cause of this exception. Provided for compatibility with later JVMs, overriding thejava.lang.Throwablemethod.
-
printStackTrace
public void printStackTrace()
Print stack trace to standard error. This is an override of the base class method to implement exception chaining.- Overrides:
printStackTracein classThrowable
-
printStackTrace
public void printStackTrace(PrintStream s)
Print stack trace to stream. This is an override of the base class method to implement exception chaining.- Overrides:
printStackTracein classThrowable- Parameters:
s- stream for printing stack trace
-
printStackTrace
public void printStackTrace(PrintWriter s)
Print stack trace to writer. This is an override of the base class method to implement exception chaining.- Overrides:
printStackTracein classThrowable- Parameters:
s- writer for printing stack trace
-
-