java.io.Serializablepublic final class BindingException
extends java.lang.Exception
| Constructor | Description |
|---|---|
BindingException(java.lang.Exception exception) |
Creates a new BindingException wrapping an existing Exception.
|
BindingException(java.lang.String message) |
Creates a new BindingException.
|
BindingException(java.lang.String message,
java.lang.Exception exception) |
Creates a new BindingException from an existing exception.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Exception |
getException() |
Returns the embedded Exception, if any.
|
java.lang.String |
getMessage() |
Returns a detailed message for this Exception.
|
void |
printStackTrace() |
Overrides printStackTrace to keep the stack trace of the embedded
Exception.
|
java.lang.String |
toString() |
Overrides toString to pick up any embedded Exception.
|
public BindingException(java.lang.String message)
message - The error or warning message.public BindingException(java.lang.Exception exception)
The existing Exception will be embedded in the new one, and its message will become the default message for the BindingException.
exception - The Exception to be wrapped in a BindingException.public BindingException(java.lang.String message,
java.lang.Exception exception)
The existing Exception will be embedded in the new one, but the new Exception will have its own message.
message - The detail message.exception - The Exception to be wrapped in a BindingException.public java.lang.String getMessage()
If there is an embedded Exception, and if the BindingException has no detail message of its own, this method will return the detail message from the embedded Exception.
getMessage in class java.lang.Throwablepublic java.lang.Exception getException()
public void printStackTrace()
printStackTrace in class java.lang.Throwablepublic java.lang.String toString()
toString in class java.lang.ThrowableIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com