public class NamespaceException extends Exception
| Constructor and Description |
|---|
NamespaceException(String message)
Construct a
NamespaceException object with a detail message. |
NamespaceException(String message,
Throwable cause)
Construct a
NamespaceException object with a detail message and a nested exception. |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
Returns the cause of this exception or
null if no cause was set. |
Throwable |
getException()
Returns the nested exception.
|
Throwable |
initCause(Throwable cause)
Initializes the cause of this exception to the specified value.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NamespaceException(String message)
NamespaceException object with a detail message.message - the detail messagepublic Throwable getException()
This method predates the general purpose exception chaining mechanism. The getCause() method is now the
preferred means of obtaining this information.
getCause().public Throwable getCause()
null if no cause was set.public Throwable initCause(Throwable cause)
initCause in class Throwablecause - The cause of this exception.IllegalArgumentException - If the specified cause is this exception.IllegalStateException - If the cause of this exception has already been set.Copyright © 2016 JBoss by Red Hat. All rights reserved.