org.exolab.castor.builder.binding
Class BindingException
Exception
org.exolab.castor.builder.binding.BindingException
public class BindingException
extends Exception
The base exception for the binding package.
This exception is nested in order to keep a correct stack trace while nesting
the exception that causes the call to BindingException
$Version:$ $Date: 2003/03/03 07:07:49 $BindingException(Exception exception) - Create a new BindingException wrapping an existing exception.
|
BindingException(String message) - Create a new BindingException
|
BindingException(String message, Exception exception) - Create a new BindingException from an existing exception.
|
Exception | getException() - Return the embedded exception, if any.
|
String | getMessage() - Return a detail message for this exception.
|
void | printStackTrace() - Override printStackTrace to keep the stack trace
of the embedded exception
|
String | toString() - Override toString to pick up any embedded exception.
|
BindingException
public BindingException(Exception exception)
Create a new BindingException wrapping an existing 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.
BindingException
public BindingException(String message)
Create a new BindingException
message
- The error or warning message.
BindingException
public BindingException(String message,
Exception exception)
Create a new BindingException from an existing 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.
getException
public Exception getException()
Return the embedded exception, if any.
- Exception The embedded exception, or null if there is none.
getMessage
public String getMessage()
Return a detail message for this exception.
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.
- String The error or warning message.
printStackTrace
public void printStackTrace()
Override printStackTrace to keep the stack trace
of the embedded exception
toString
public String toString()
Override toString to pick up any embedded exception.
- String A string representation of this exception.
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com