Package org.exolab.castor.mapping
Class MappingRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.exolab.castor.mapping.MappingRuntimeException
- All Implemented Interfaces:
Serializable
An exception indicating an invalid mapping error. This
exception extends IllegalStateException so that it can
be used to replace current uses of IllegalStateException
within the mapping framework. This exception is used
when a nested exception needs to be reported.
- Version:
- $Revision: 7951 $ $Date: 2006-04-10 16:39:24 -0600 (Mon, 10 Apr 2006) $
- Author:
- Assaf Arkin, Keith Visco
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMappingRuntimeException
(String message) Creates a new MappingRuntimeExceptionMappingRuntimeException
(String message, Object[] args) Creates a new MappingRuntimeExceptionMappingRuntimeException
(Throwable exception) Creates a new MappingRuntimeExceptionMappingRuntimeException
(Throwable exception, String message) Creates a new MappingRuntimeException -
Method Summary
Modifier and TypeMethodDescriptionReturns the Exception which caused this Exception, or null if no nested exception exists.void
void
printStackTrace
(PrintStream print) void
printStackTrace
(PrintWriter print) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
MappingRuntimeException
Creates a new MappingRuntimeException- Parameters:
message
- the error message
-
MappingRuntimeException
Creates a new MappingRuntimeException- Parameters:
message
- the error message
-
MappingRuntimeException
Creates a new MappingRuntimeException- Parameters:
exception
- the Exception which caused this Exception.
-
MappingRuntimeException
Creates a new MappingRuntimeException- Parameters:
exception
- the Exception which caused this Exception.message
- the error message
-
-
Method Details
-
getException
Returns the Exception which caused this Exception, or null if no nested exception exists.- Returns:
- the nested Exception.
-
printStackTrace
public void printStackTrace()- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
- Overrides:
printStackTrace
in classThrowable
-