java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.htmlunit.cyberneko.xerces.xni.XNIException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
XMLConfigurationException,XMLParseException
Base exception for all XNI exceptions. It can be constructed with an
error message, a wrapped cause, or both.
Note: By extending RuntimeException, XNI handlers
and components are not required to catch XNI exceptions explicitly, but
may choose to do so if desired.
- Author:
- Andy Clark, IBM, Ronald Brill
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionXNIException(String message) Constructs an XNI exception with the specified detail message.XNIException(String message, Throwable cause) Constructs an XNI exception with the specified detail message and wrapped cause.XNIException(Throwable cause) Constructs an XNI exception with the specified wrapped cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
XNIException
Constructs an XNI exception with the specified detail message.- Parameters:
message- the detail message
-
XNIException
Constructs an XNI exception with the specified wrapped cause.- Parameters:
cause- the wrapped cause exception
-
XNIException
Constructs an XNI exception with the specified detail message and wrapped cause.- Parameters:
message- the detail messagecause- the wrapped cause exception
-
-
Method Details
-
getException
Returns the wrapped exception cause.- Returns:
- the wrapped cause as an
Exception, ornullif none exists
-