public class XNIException
extends java.lang.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(java.lang.Exception exception)
Constructs an XNI exception with a wrapped exception.
|
XNIException(java.lang.String message)
Constructs an XNI exception with a message.
|
XNIException(java.lang.String message,
java.lang.Exception exception)
Constructs an XNI exception with a message and wrapped exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause()
Returns the cause of this
XNIException . |
java.lang.Exception |
getException()
Returns the wrapped exception.
|
java.lang.Throwable |
initCause(java.lang.Throwable throwable)
Initializes the cause of this
XNIException . |
public XNIException(java.lang.String message)
message
- The exception message.public XNIException(java.lang.Exception exception)
exception
- The wrapped exception.public XNIException(java.lang.String message, java.lang.Exception exception)
message
- The exception message.exception
- The wrapped exception.public java.lang.Exception getException()
public java.lang.Throwable initCause(java.lang.Throwable throwable)
XNIException
.
The value must be an instance of Exception
or
null
.initCause
in class java.lang.Throwable
throwable
- the causejava.lang.IllegalStateException
- if a cause has already been setjava.lang.IllegalArgumentException
- if the cause is this exceptionjava.lang.ClassCastException
- if the cause is not assignable to Exception
public java.lang.Throwable getCause()
XNIException
.getCause
in class java.lang.Throwable
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.