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 |
---|---|
Exception |
getException()
Returns the wrapped exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public XNIException(String message)
message
- The exception message.public XNIException(Exception exception)
exception
- The wrapped exception.public Exception getException()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.