org.apache.xerces.xni

Class XNIException

Known Direct Subclasses:
XMLConfigurationException, XMLParseException

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.

Version:
$Id: XNIException.java,v 1.5 2004/08/15 21:22:16 mrglavas Exp $
Author:
Andy Clark, IBM

Constructor Summary

XNIException(Exception exception)
Constructs an XNI exception with a wrapped exception.
XNIException(String message)
Constructs an XNI exception with a message.
XNIException(String message, Exception exception)
Constructs an XNI exception with a message and wrapped exception.

Method Summary

Exception
getException()
Returns the wrapped exception.

Constructor Details

XNIException

public XNIException(Exception exception)
Constructs an XNI exception with a wrapped exception.
Parameters:
exception - The wrapped exception.

XNIException

public XNIException(String message)
Constructs an XNI exception with a message.
Parameters:
message - The exception message.

XNIException

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 Details

getException

public Exception getException()
Returns the wrapped exception.

Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.