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, toString
public 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 Throwable
cause
- 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 © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0