Class XNIException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
XMLConfigurationException, XMLParseException

public class XNIException extends RuntimeException
Base exception for all XNI exceptions. It can be constructed with an error message, a wrapped cause, or both.

Note: By extending RuntimeException, XNI handlers and components are not required to catch XNI exceptions explicitly, but may choose to do so if desired.

Author:
Andy Clark, IBM, Ronald Brill
See Also:
  • Constructor Details

    • XNIException

      public XNIException(String message)
      Constructs an XNI exception with the specified detail message.
      Parameters:
      message - the detail message
    • XNIException

      public XNIException(Throwable cause)
      Constructs an XNI exception with the specified wrapped cause.
      Parameters:
      cause - the wrapped cause exception
    • XNIException

      public XNIException(String message, Throwable cause)
      Constructs an XNI exception with the specified detail message and wrapped cause.
      Parameters:
      message - the detail message
      cause - the wrapped cause exception
  • Method Details

    • getException

      public Exception getException()
      Returns the wrapped exception cause.
      Returns:
      the wrapped cause as an Exception, or null if none exists