Package org.castor.core.exceptions
Class CastorRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.castor.core.exceptions.CastorRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
PropertiesException
public class CastorRuntimeException extends java.lang.RuntimeExceptionCastorRuntimeException is the superclass of all unchecked Castor exceptions that are thrown during the normal operation of the Java Virtual Machine.- Since:
- 1.1.3
- Version:
- $Id: Configuration.java,v 1.8 2006/03/08 17:25:52 jens Exp $
- Author:
- Ralf Joachim
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CastorRuntimeException()Constructs a new Castor runtime exception without a message.CastorRuntimeException(java.lang.String message)Constructs a new Castor runtime exception with the specified detail message.CastorRuntimeException(java.lang.String message, java.lang.Throwable cause)Constructs a new Castor runtime exception with the specified detail message and cause.CastorRuntimeException(java.lang.Throwable cause)Constructs a new Castor runtime exception with the specified cause and the detail message of the cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablegetCause()The method emulates the JDK 1.4 Throwable version of getCause() for JDKs before 1.4.java.lang.ThrowableinitCause(java.lang.Throwable cause)The method emulates the JDK 1.4 Throwable version of initCause() for JDKs before 1.4.voidprintStackTrace()voidprintStackTrace(java.io.PrintStream s)voidprintStackTrace(java.io.PrintWriter w)
-
-
-
Constructor Detail
-
CastorRuntimeException
public CastorRuntimeException()
Constructs a new Castor runtime exception without a message. The cause is not initialized but may subsequently be initialized by a call to initCause(Throwable).
-
CastorRuntimeException
public CastorRuntimeException(java.lang.String message)
Constructs a new Castor runtime exception with the specified detail message. The cause is not initialized but may subsequently be initialized by a call to initCause(Throwable).- Parameters:
message- The detail message.
-
CastorRuntimeException
public CastorRuntimeException(java.lang.Throwable cause)
Constructs a new Castor runtime exception with the specified cause and the detail message of the cause. This constructor is useful for exceptions that are wrappers for others.- Parameters:
cause- The cause.
-
CastorRuntimeException
public CastorRuntimeException(java.lang.String message, java.lang.Throwable cause)Constructs a new Castor runtime exception with the specified detail message and cause.- Parameters:
message- The detail message.cause- The cause.
-
-
Method Detail
-
initCause
public final java.lang.Throwable initCause(java.lang.Throwable cause)
The method emulates the JDK 1.4 Throwable version of initCause() for JDKs before 1.4.
- Overrides:
initCausein classjava.lang.Throwable
-
getCause
public final java.lang.Throwable getCause()
The method emulates the JDK 1.4 Throwable version of getCause() for JDKs before 1.4.
- Overrides:
getCausein classjava.lang.Throwable
-
printStackTrace
public void printStackTrace()
- Overrides:
printStackTracein classjava.lang.Throwable
-
printStackTrace
public final void printStackTrace(java.io.PrintStream s)
- Overrides:
printStackTracein classjava.lang.Throwable
-
printStackTrace
public final void printStackTrace(java.io.PrintWriter w)
- Overrides:
printStackTracein classjava.lang.Throwable
-
-