FileDocCategorySizeDatePackage
XNIException.javaAPI DocJava SE 6 API2488Tue Jun 10 00:22:54 BST 2008com.sun.org.apache.xerces.internal.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,v 1.2.6.1 2005/09/06 08:53:57 neerajbj Exp $

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;