FileDocCategorySizeDatePackage
XNIException.javaAPI DocJava SE 5 API4452Fri Aug 26 14:55:58 BST 2005com.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.3 2002/01/29 01:15:19 lehors Exp $

Fields Summary
private Exception
fException
The wrapped exception.
Constructors Summary
public XNIException(String message)
Constructs an XNI exception with a message.

param
message The exception message.

        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;