Class XNIException
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
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.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXNIException
(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
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
XNIException
Constructs an XNI exception with a message.- Parameters:
message
- The exception message.
-
XNIException
Constructs an XNI exception with a wrapped exception.- Parameters:
exception
- The wrapped exception.
-
XNIException
Constructs an XNI exception with a message and wrapped exception.- Parameters:
message
- The exception message.exception
- The wrapped exception.
-
-
Method Details
-
getException
- Returns:
- the wrapped exception.
-