org.exolab.castor.core.exceptions
public class CastorException extends Exception
Version: $Revision: 1.4 $ $Date: 2005/04/08 16:43:32 $
Constructor Summary | |
---|---|
CastorException()
Creates a new CastorException with no message, or nested Exception | |
CastorException(String message)
Creates a new CastorException with the given message.
| |
CastorException(String message, Throwable cause)
Creates a new CastorException with the given message and cause. | |
CastorException(Throwable cause)
Creates a new CastorException with the given cause. |
Method Summary | |
---|---|
Throwable | getCause()
Match the JDK 1.4 Throwable version of getCause() on JDK<1.4 systems. |
Throwable | getException()
Match some internal API and some surrounding API to provide this method. |
String | getMessage()
Return the detailed message from this exception. |
Throwable | initCause(Throwable cause)
Match the JDK 1.4 Throwable version of initCause() on JDK<1.4 systems. |
void | printStackTrace()
Print a stack trace to stderr. |
void | printStackTrace(PrintStream s)
Print a stack trace to the specified PrintStream. |
void | printStackTrace(PrintWriter w)
Print a stack trace to the specified PrintWriter. |
Parameters: message the message for this Exception
Parameters: message The message for this exception. cause A Throwable instance.
Parameters: cause A Throwable instance.
Returns: The throwable cause of this exception.
Deprecated: Please move to getCause().
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.
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.)
Parameters: s The PrintStream to print a stack trace to.
Parameters: w The PrintWriter to print a stack trace to.