-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
282 changed files
with
34,807 additions
and
36,990 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,60 +25,55 @@ | |
* | ||
* @author Andres Almiray <a href="mailto:[email protected]">[email protected]</a> | ||
*/ | ||
public class MorphException extends NestableRuntimeException | ||
{ | ||
private static final long serialVersionUID = -540093801787033824L; | ||
public class MorphException extends NestableRuntimeException { | ||
private static final long serialVersionUID = -540093801787033824L; | ||
|
||
// ----------------------------------------------------------- Constructors | ||
// ----------------------------------------------------------- Constructors | ||
|
||
/** | ||
* The root cause of this <code>ConversionException</code>, compatible | ||
* with JDK 1.4's extensions to <code>java.lang.Throwable</code>. | ||
*/ | ||
protected Throwable cause = null; | ||
/** | ||
* The root cause of this <code>ConversionException</code>, compatible | ||
* with JDK 1.4's extensions to <code>java.lang.Throwable</code>. | ||
*/ | ||
protected Throwable cause = null; | ||
|
||
/** | ||
* Construct a new exception with the specified message. | ||
* | ||
* @param message The message describing this exception | ||
*/ | ||
public MorphException( String message ) | ||
{ | ||
super( message ); | ||
} | ||
/** | ||
* Construct a new exception with the specified message. | ||
* | ||
* @param message The message describing this exception | ||
*/ | ||
public MorphException(String message) { | ||
super(message); | ||
} | ||
|
||
/** | ||
* Construct a new exception with the specified message and root cause. | ||
* | ||
* @param message The message describing this exception | ||
* @param cause The root cause of this exception | ||
*/ | ||
public MorphException( String message, Throwable cause ) | ||
{ | ||
super( message ); | ||
this.cause = cause; | ||
} | ||
/** | ||
* Construct a new exception with the specified message and root cause. | ||
* | ||
* @param message The message describing this exception | ||
* @param cause The root cause of this exception | ||
*/ | ||
public MorphException(String message, Throwable cause) { | ||
super(message); | ||
this.cause = cause; | ||
} | ||
|
||
// ------------------------------------------------------------- Properties | ||
// ------------------------------------------------------------- Properties | ||
|
||
/** | ||
* Construct a new exception with the specified root cause. | ||
* | ||
* @param cause The root cause of this exception | ||
*/ | ||
public MorphException( Throwable cause ) | ||
{ | ||
super( cause.getMessage() ); | ||
this.cause = cause; | ||
} | ||
/** | ||
* Construct a new exception with the specified root cause. | ||
* | ||
* @param cause The root cause of this exception | ||
*/ | ||
public MorphException(Throwable cause) { | ||
super(cause.getMessage()); | ||
this.cause = cause; | ||
} | ||
|
||
/** | ||
* Returns the cause of this exception. | ||
* | ||
* @return a Throwable that represents the cause of this exception | ||
*/ | ||
public Throwable getCause() | ||
{ | ||
return this.cause; | ||
} | ||
} | ||
/** | ||
* Returns the cause of this exception. | ||
* | ||
* @return a Throwable that represents the cause of this exception | ||
*/ | ||
public Throwable getCause() { | ||
return this.cause; | ||
} | ||
} |
Oops, something went wrong.