Class CastorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.exolab.castor.core.exceptions.CastorException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PersistenceException
,XMLException
The base exception for Castor (or at least Castor XML)
- Version:
- $Revision: 6301 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Keith Visco
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new CastorException with no message, or nested ExceptionCastorException
(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
Modifier and TypeMethodDescriptiongetCause()
Match the JDK 1.4 Throwable version of getCause() on JDKinvalid input: '<'1.4 systems.Return the detailed message from this Exception.Match the JDK 1.4 Throwable version of initCause() on JDKinvalid input: '<'1.4 systems.void
Print a stack trace to stderr.void
Print a stack trace to the specified PrintStream.void
Print a stack trace to the specified PrintWriter.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, setStackTrace, toString
-
Constructor Details
-
CastorException
public CastorException()Creates a new CastorException with no message, or nested Exception -
CastorException
Creates a new CastorException with the given message.- Parameters:
message
- the message for this Exception
-
CastorException
Creates a new CastorException with the given message and cause.- Parameters:
message
- The message for this exception.cause
- A Throwable instance.
-
CastorException
Creates a new CastorException with the given cause.- Parameters:
cause
- A Throwable instance.
-
-
Method Details
-
initCause
Match the JDK 1.4 Throwable version of initCause() on JDKinvalid input: '<'1.4 systems. -
getCause
Match the JDK 1.4 Throwable version of getCause() on JDKinvalid input: '<'1.4 systems. -
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.- Overrides:
getMessage
in classThrowable
- Returns:
- the detailed message from this Exception.
-
printStackTrace
public void printStackTrace()Print a stack trace to stderr.- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
Print a stack trace to the specified PrintStream.- Overrides:
printStackTrace
in classThrowable
- Parameters:
s
- The PrintStream to print a stack trace to.
-
printStackTrace
Print a stack trace to the specified PrintWriter.- Overrides:
printStackTrace
in classThrowable
- Parameters:
w
- The PrintWriter to print a stack trace to.
-