org.exolab.castor.core.exceptions
Class CastorException
Exception
org.exolab.castor.core.exceptions.CastorException
public class CastorException
extends Exception
The base exception for Castor (or at least Castor XML)
$Revision: 6301 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $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.
|
Throwable | getCause() - Match the JDK 1.4 Throwable version of getCause() on JDK<1.4 systems.
|
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.
|
CastorException
public CastorException()
Creates a new CastorException with no message, or nested Exception
CastorException
public CastorException(String message)
Creates a new CastorException with the given message.
message
- the message for this Exception
CastorException
public CastorException(String message,
Throwable cause)
Creates a new CastorException with the given message and cause.
message
- The message for this exception.cause
- A Throwable instance.
CastorException
public CastorException(Throwable cause)
Creates a new CastorException with the given cause.
cause
- A Throwable instance.
getCause
public Throwable getCause()
Match the JDK 1.4 Throwable version of getCause() on JDK<1.4 systems.
- The throwable cause of this exception.
getMessage
public String getMessage()
Return the detailed message from this Exception. Chain message
information from child exceptions into it, so that the message shows the
chain of message information available.
- the detailed message from this Exception.
initCause
public Throwable initCause(Throwable cause)
Match the JDK 1.4 Throwable version of initCause() on JDK<1.4 systems.
cause
- The throwable you wish to attach to this exception as the 'cause' of the exception.
- This exception. (Throwable also returns this, not the cause.)
printStackTrace
public void printStackTrace()
Print a stack trace to stderr.
printStackTrace
public void printStackTrace(PrintStream s)
Print a stack trace to the specified PrintStream.
s
- The PrintStream to print a stack trace to.
printStackTrace
public void printStackTrace(PrintWriter w)
Print a stack trace to the specified PrintWriter.
w
- The PrintWriter to print a stack trace to.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com