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:
- java.io.Serializable, org.apache.commons.lang.exception.Nestable
public class MorphException
- extends org.apache.commons.lang.exception.NestableRuntimeException
A MorphException indicates that a call to
Morpher.morph() has failed to complete successfully.
Based on common-beauntils ConversionException.
- Author:
- Andres Almiray
- See Also:
- Serialized Form
|
Field Summary |
protected java.lang.Throwable |
cause
The root cause of this ConversionException, compatible
with JDK 1.4's extensions to java.lang.Throwable. |
| Fields inherited from class org.apache.commons.lang.exception.NestableRuntimeException |
delegate |
|
Constructor Summary |
MorphException(java.lang.String message)
Construct a new exception with the specified message. |
MorphException(java.lang.String message,
java.lang.Throwable cause)
Construct a new exception with the specified message and root cause. |
MorphException(java.lang.Throwable cause)
Construct a new exception with the specified root cause. |
|
Method Summary |
java.lang.Throwable |
getCause()
Returns the cause of this exception. |
| 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 |
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
cause
protected java.lang.Throwable cause
- The root cause of this
ConversionException, compatible
with JDK 1.4's extensions to java.lang.Throwable.
MorphException
public MorphException(java.lang.String message)
- Construct a new exception with the specified message.
- Parameters:
message - The message describing this exception
MorphException
public MorphException(java.lang.String message,
java.lang.Throwable cause)
- 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
public MorphException(java.lang.Throwable cause)
- Construct a new exception with the specified root cause.
- Parameters:
cause - The root cause of this exception
getCause
public java.lang.Throwable getCause()
- Returns the cause of this exception.
- Specified by:
getCause in interface org.apache.commons.lang.exception.Nestable- Overrides:
getCause in class org.apache.commons.lang.exception.NestableRuntimeException
- Returns:
- a Throwable that represents the cause of this exception
Copyright © 2006-2011. All Rights Reserved.