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: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $BindingException(Exception exception) - Creates a new BindingException wrapping an existing Exception.
|
BindingException(String message) - Creates a new BindingException.
|
BindingException(String message, Exception exception) - Creates a new BindingException from an existing exception.
|
Exception | getException() - Returns the embedded Exception, if any.
|
String | getMessage() - Returns a detailed message for this Exception.
|
void | printStackTrace() - Overrides printStackTrace to keep the stack trace of the embedded
Exception
|
String | toString() - Overrides toString to pick up any embedded Exception.
|
BindingException
public BindingException(Exception exception)
Creates 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)
Creates a new BindingException.
message
- The error or warning message.
BindingException
public BindingException(String message,
Exception exception)
Creates 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()
Returns the embedded Exception, if any.
- Exception The embedded Exception, or null if there is none.
getMessage
public String getMessage()
Returns a detailed 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()
Overrides printStackTrace to keep the stack trace of the embedded
Exception
toString
public String toString()
Overrides toString to pick up any embedded Exception.
- String A string representation of this Exception.
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com