Class XNIException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.jackrabbit.vault.util.xml.xerces.xni.XNIException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
XMLParseException
@Deprecated(since="2021-03-05") public class XNIException extends RuntimeException
Deprecated.Please avoid using this package and use standard XML APIs.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XNIException(Exception exception)
Deprecated.Constructs an XNI exception with a wrapped exception.XNIException(String message)
Deprecated.Constructs an XNI exception with a message.XNIException(String message, Exception exception)
Deprecated.Constructs an XNI exception with a message and wrapped exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Exception
getException()
Deprecated.Returns the wrapped exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
XNIException
public XNIException(String message)
Deprecated.Constructs an XNI exception with a message.- Parameters:
message
- The exception message.
-
XNIException
public XNIException(Exception exception)
Deprecated.Constructs an XNI exception with a wrapped exception.- Parameters:
exception
- The wrapped exception.
-
-
Method Detail
-
getException
public Exception getException()
Deprecated.Returns the wrapped exception.
-
-