Package net.sf.ezmorph
Class MorphException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.commons.lang.exception.NestableRuntimeException
net.sf.ezmorph.MorphException
- All Implemented Interfaces:
Serializable
,org.apache.commons.lang.exception.Nestable
public class MorphException
extends org.apache.commons.lang.exception.NestableRuntimeException
A MorphException indicates that a call to
Based on common-beauntils ConversionException.
Morpher.morph()
has failed to complete successfully.Based on common-beauntils ConversionException.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Throwable
The root cause of thisConversionException
, compatible with JDK 1.4's extensions tojava.lang.Throwable
.private static final long
Fields inherited from class org.apache.commons.lang.exception.NestableRuntimeException
delegate
-
Constructor Summary
ConstructorsConstructorDescriptionMorphException
(String message) Construct a new exception with the specified message.MorphException
(String message, Throwable cause) Construct a new exception with the specified message and root cause.MorphException
(Throwable cause) Construct a new exception with the specified root cause. -
Method Summary
Methods inherited from class org.apache.commons.lang.exception.NestableRuntimeException
getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
cause
The root cause of thisConversionException
, compatible with JDK 1.4's extensions tojava.lang.Throwable
.
-
-
Constructor Details
-
MorphException
Construct a new exception with the specified message.- Parameters:
message
- The message describing this exception
-
MorphException
Construct a new exception with the specified message and root cause.- Parameters:
message
- The message describing this exceptioncause
- The root cause of this exception
-
MorphException
Construct a new exception with the specified root cause.- Parameters:
cause
- The root cause of this exception
-
-
Method Details
-
getCause
Returns the cause of this exception.- Specified by:
getCause
in interfaceorg.apache.commons.lang.exception.Nestable
- Overrides:
getCause
in classorg.apache.commons.lang.exception.NestableRuntimeException
- Returns:
- a Throwable that represents the cause of this exception
-