public class XNIException extends RuntimeException
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
Returns the cause of this
XNIException. |
Exception |
getException()
Returns the wrapped exception.
|
Throwable |
initCause(Throwable throwable)
Initializes the cause of this
XNIException. |
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic XNIException(String message)
message - The exception message.public XNIException(Exception exception)
exception - The wrapped exception.public Exception getException()
public Throwable initCause(Throwable throwable)
XNIException.
The value must be an instance of Exception or
null.initCause in class Throwablethrowable - the causeIllegalStateException - if a cause has already been setIllegalArgumentException - if the cause is this exceptionClassCastException - if the cause is not assignable to ExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.