net.sf.ezmorph

Class MorphException

public class MorphException extends NestableRuntimeException

A MorphException indicates that a call to Morpher.morph() has failed to complete successfully.
Based on common-beauntils ConversionException.

Author: Andres Almiray

Field Summary
protected Throwablecause
The root cause of this ConversionException, compatible with JDK 1.4's extensions to java.lang.Throwable.
Constructor Summary
MorphException(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
ThrowablegetCause()
Returns the cause of this exception.

Field Detail

cause

protected Throwable cause
The root cause of this ConversionException, compatible with JDK 1.4's extensions to java.lang.Throwable.

Constructor Detail

MorphException

public MorphException(String message)
Construct a new exception with the specified message.

Parameters: message The message describing this exception

MorphException

public MorphException(String message, Throwable cause)
Construct a new exception with the specified message and root cause.

Parameters: message The message describing this exception cause The root cause of this exception

MorphException

public MorphException(Throwable cause)
Construct a new exception with the specified root cause.

Parameters: cause The root cause of this exception

Method Detail

getCause

public Throwable getCause()
Returns the cause of this exception.

Returns: a Throwable that represents the cause of this exception

Copyright © 2006-2011. All Rights Reserved.