Home » Xerces-J-src.2.9.1 » org.apache.xerces » xni » [javadoc | source]
org.apache.xerces.xni
public class: XNIException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.lang.RuntimeException
            org.apache.xerces.xni.XNIException

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    XMLConfigurationException, XMLParseException

This exception is the base exception of all XNI exceptions. It can be constructed with an error message or used to wrap another exception object.

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

Field Summary
static final  long serialVersionUID    Serialization version. 
Constructor:
 public XNIException(String message) 
    Constructs an XNI exception with a message.
    Parameters:
    message - The exception message.
 public XNIException(Exception exception) 
    Constructs an XNI exception with a wrapped exception.
    Parameters:
    exception - The wrapped exception.
 public XNIException(String message,
    Exception exception) 
    Constructs an XNI exception with a message and wrapped exception.
    Parameters:
    message - The exception message.
    exception - The wrapped exception.
Method from org.apache.xerces.xni.XNIException Summary:
getException
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xerces.xni.XNIException Detail:
 public Exception getException() 
    Returns the wrapped exception.