Class 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:
  • Field Details

    • m_rootCause

      private Throwable m_rootCause
      Exception that caused this exception.
  • Constructor Details

    • JiBXException

      public JiBXException(String msg)
      Constructor from message.
      Parameters:
      msg - message describing the exception condition
    • JiBXException

      public JiBXException(String msg, Throwable root)
      Constructor from message and wrapped exception.
      Parameters:
      msg - message describing the exception condition
      root - exception which caused this exception
  • Method Details

    • 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 the java.lang.Throwable method.
      Overrides:
      getCause in class Throwable
      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:
      printStackTrace in class Throwable
    • 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:
      printStackTrace in class Throwable
      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:
      printStackTrace in class Throwable
      Parameters:
      s - writer for printing stack trace