Public Member Functions

org.exolab.castor.core.exceptions.CastorException Class Reference

Inheritance diagram for org.exolab.castor.core.exceptions.CastorException:
org.exolab.castor.xml.XMLException org.exolab.castor.xml.MarshalException org.exolab.castor.xml.schema.SchemaException org.exolab.castor.xml.ValidationException

List of all members.

Public Member Functions

 CastorException ()
 CastorException (String message)
 CastorException (String message, Throwable cause)
 CastorException (Throwable cause)
synchronized Throwable initCause (Throwable cause)
Throwable getCause ()
Throwable getException ()
String getMessage ()
void printStackTrace ()
void printStackTrace (PrintStream s)
void printStackTrace (PrintWriter w)

Detailed Description

The base exception for Castor (or at least Castor XML)

Author:
Keith Visco
Version:
Revision:
1.3
Date:
2004/11/28 15:37:00

Constructor & Destructor Documentation

org.exolab.castor.core.exceptions.CastorException.CastorException (  ) 

Creates a new CastorException with no message, or nested Exception

org.exolab.castor.core.exceptions.CastorException.CastorException ( String  message  ) 

Creates a new CastorException with the given message.

Parameters:
message the message for this Exception
org.exolab.castor.core.exceptions.CastorException.CastorException ( String  message,
Throwable  cause 
)

Creates a new CastorException with the given message and cause.

Parameters:
message The message for this exception.
cause A Throwable instance.
org.exolab.castor.core.exceptions.CastorException.CastorException ( Throwable  cause  ) 

Creates a new CastorException with the given cause.

Parameters:
cause A Throwable instance.

Member Function Documentation

Throwable org.exolab.castor.core.exceptions.CastorException.getCause (  ) 

Match the JDK 1.4 Throwable version of getCause() on JDK<1.4 systems.

Returns:
The throwable cause of this exception.

Referenced by org.exolab.castor.xml.XMLException.toString(), and org.exolab.castor.xml.ValidationException.toString().

Throwable org.exolab.castor.core.exceptions.CastorException.getException (  ) 

Match some internal API and some surrounding API to provide this method.

Returns:
the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.
Deprecated:
Please move to getCause().
synchronized Throwable org.exolab.castor.core.exceptions.CastorException.initCause ( Throwable  cause  ) 

Match the JDK 1.4 Throwable version of initCause() on JDK<1.4 systems.

Parameters:
cause The throwable you wish to attach to this exception as the 'cause' of the exception.
Returns:
This exception. (Throwable also returns this, not the cause.)
void org.exolab.castor.core.exceptions.CastorException.printStackTrace ( PrintStream  s  ) 

Print a stack trace to the specified PrintStream.

Parameters:
s The PrintStream to print a stack trace to.
void org.exolab.castor.core.exceptions.CastorException.printStackTrace ( PrintWriter  w  ) 

Print a stack trace to the specified PrintWriter.

Parameters:
w The PrintWriter to print a stack trace to.

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