org.jibx.runtime
Class JiBXException
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.jibx.runtime.JiBXException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- JiBXParseException, RecoverableException, UnrecoverableException
public class JiBXException
- extends java.lang.Exception
Binding exception class. This is used for all types of errors that can be generated by the runtime.
- See Also:
- Serialized Form
| Constructor Summary | |
|---|---|
JiBXException(java.lang.String msg)
Constructor from message. |
|
JiBXException(java.lang.String msg,
java.lang.Throwable root)
Constructor from message and wrapped exception. |
|
| Method Summary | |
|---|---|
java.lang.Throwable |
getRootCause()
Get root cause exception. |
void |
printStackTrace()
Print stack trace to standard error. |
void |
printStackTrace(java.io.PrintStream s)
Print stack trace to stream. |
void |
printStackTrace(java.io.PrintWriter s)
Print stack trace to writer. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
JiBXException
public JiBXException(java.lang.String msg)
- Constructor from message.
- Parameters:
msg- message describing the exception condition
JiBXException
public JiBXException(java.lang.String msg,
java.lang.Throwable root)
- Constructor from message and wrapped exception.
- Parameters:
msg- message describing the exception conditionroot- exception which caused this exception
| Method Detail |
|---|
getRootCause
public java.lang.Throwable getRootCause()
- Get root cause exception.
- Returns:
- exception that caused this exception
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 classjava.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintStream s)
- Print stack trace to stream. This is an override of the base class method
to implement exception chaining.
- Overrides:
printStackTracein classjava.lang.Throwable
- Parameters:
s- stream for printing stack trace
printStackTrace
public void printStackTrace(java.io.PrintWriter s)
- Print stack trace to writer. This is an override of the base class method
to implement exception chaining.
- Overrides:
printStackTracein classjava.lang.Throwable
- Parameters:
s- writer for printing stack trace
java.lang.Throwable