|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.xerces.xni.XNIException
public class XNIException
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.
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 | |
---|---|
Throwable |
getCause()
Returns the cause of this XNIException . |
Exception |
getException()
Returns the wrapped exception. |
Throwable |
initCause(Throwable throwable)
Initializes the cause of this XNIException . |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XNIException(String message)
message
- The exception message.public XNIException(Exception exception)
exception
- The wrapped exception.public XNIException(String message, Exception exception)
message
- The exception message.exception
- The wrapped exception.Method Detail |
---|
public Exception getException()
public Throwable initCause(Throwable throwable)
XNIException
.
The value must be an instance of Exception
or
null
.
initCause
in class Throwable
throwable
- the cause
IllegalStateException
- if a cause has already been set
IllegalArgumentException
- if the cause is this exception
ClassCastException
- if the cause is not assignable to Exception
public Throwable getCause()
XNIException
.
getCause
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |