Public Member Functions

org.exolab.castor.builder.binding.BindingException Class Reference

Inherits java::lang::Exception.

List of all members.

Public Member Functions

 BindingException (String message)
 BindingException (Exception exception)
 BindingException (String message, Exception exception)
String getMessage ()
Exception getException ()
void printStackTrace ()
String toString ()

Detailed Description

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

Author:
Arnaud Blandin
Version:
$Version:$
Date:
2003/03/03 07:07:49

Constructor & Destructor Documentation

org.exolab.castor.builder.binding.BindingException.BindingException ( String  message  ) 

Create a new BindingException

Parameters:
message The error or warning message.
org.exolab.castor.builder.binding.BindingException.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.

Parameters:
exception The exception to be wrapped in a BindingException.
org.exolab.castor.builder.binding.BindingException.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.

Parameters:
message The detail message.
exception The exception to be wrapped in a BindingException.

Member Function Documentation

Exception org.exolab.castor.builder.binding.BindingException.getException (  ) 

Return the embedded exception, if any.

Returns:
Exception The embedded exception, or null if there is none.
String org.exolab.castor.builder.binding.BindingException.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.

Returns:
String The error or warning message.

Referenced by org.exolab.castor.builder.SourceGenerator.setBinding().

void org.exolab.castor.builder.binding.BindingException.printStackTrace (  ) 

Override printStackTrace to keep the stack trace of the embedded exception

Referenced by org.exolab.castor.builder.SourceGenerator.main().

String org.exolab.castor.builder.binding.BindingException.toString (  ) 

Override toString to pick up any embedded exception.

Returns:
String A string representation of this exception.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties