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.
- author:
Andy
- Clark, IBM
- version:
$
- Id: XNIException.java 447247 2006-09-18 05:23:52Z mrglavas $
Field Summary |
---|
static final long | serialVersionUID | Serialization version. |
Constructor: |
public XNIException(String message) {
//
// Constructors
//
super(message);
}
Constructs an XNI exception with a message. Parameters:
message - The exception message.
|
public XNIException(Exception exception) {
super(exception.getMessage());
fException = exception;
}
Constructs an XNI exception with a wrapped exception. Parameters:
exception - The wrapped exception.
|
public XNIException(String message,
Exception exception) {
super(message);
fException = 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 |
Method from org.apache.xerces.xni.XNIException Detail: |
public Exception getException() {
return fException;
}
Returns the wrapped exception. |