FileDocCategorySizeDatePackage
XNIException.javaAPI DocApache Xerces 3.0.12730Fri Sep 14 20:33:56 BST 2007org.apache.xerces.xni

XNIException

public class XNIException extends RuntimeException
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.

author
Andy Clark, IBM
version
$Id: XNIException.java 447247 2006-09-18 05:23:52Z mrglavas $

Fields Summary
static final long
serialVersionUID
Serialization version.
private Exception
fException
The wrapped exception.
Constructors Summary
public XNIException(String message)
Constructs an XNI exception with a message.

param
message The exception message.


    //
    // Constructors
    //

                      
       
        super(message);
    
public XNIException(Exception exception)
Constructs an XNI exception with a wrapped exception.

param
exception The wrapped exception.

        super(exception.getMessage());
        fException = exception;
    
public XNIException(String message, Exception exception)
Constructs an XNI exception with a message and wrapped exception.

param
message The exception message.
param
exception The wrapped exception.

        super(message);
        fException = exception;
    
Methods Summary
public java.lang.ExceptiongetException()
Returns the wrapped exception.

        return fException;