|
Lima-Loa | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.limaloa.ExceptionMapping
public final class ExceptionMapping
Encapsulates an Exception Mapping. Designed as an immutable value object.
| Constructor Summary | |
|---|---|
ExceptionMapping(java.lang.Class<? extends java.lang.Throwable> sourceClass,
java.lang.Class<? extends java.lang.Throwable> targetClass)
Creates a new exception, with wrapping enabled. |
|
ExceptionMapping(java.lang.Class<? extends java.lang.Throwable> sourceClass,
java.lang.Class<? extends java.lang.Throwable> targetClass,
boolean wrap)
Creates a new exception. |
|
ExceptionMapping(java.lang.String sourceClassname,
java.lang.String targetClassname)
Creates a new exception, with wrapping enabled. |
|
ExceptionMapping(java.lang.String sourceClassname,
java.lang.String targetClassname,
boolean wrap)
Creates a new exception, with wrapping enabled. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Value equality. |
java.lang.Class<? extends java.lang.Throwable> |
getSource()
Get the source exception. |
java.lang.Class<? extends java.lang.Throwable> |
getTarget()
Get the target exception. |
boolean |
getWrap()
Get whether the original exception should be wrapped upon mapping. |
int |
hashCode()
Hash code, consistent with value equality. |
java.lang.String |
toString()
Converts an instance to a string. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionMapping(java.lang.String sourceClassname,
java.lang.String targetClassname)
throws java.lang.ClassNotFoundException,
java.lang.ClassCastException
sourceClassname - The source exception classnametargetClassname - The target exception classname
java.lang.ClassNotFoundException - Unable to find source or target class
java.lang.ClassCastException - If source or target is not an exception
public ExceptionMapping(java.lang.Class<? extends java.lang.Throwable> sourceClass,
java.lang.Class<? extends java.lang.Throwable> targetClass)
sourceClass - The source exception classtargetClass - The target exception class
public ExceptionMapping(java.lang.String sourceClassname,
java.lang.String targetClassname,
boolean wrap)
throws java.lang.ClassNotFoundException,
java.lang.ClassCastException
sourceClassname - The source exception classnametargetClassname - The target exception classnamewrap - Whether to wrap the original exception upon mapping
java.lang.ClassNotFoundException - Unable to find source or target class
java.lang.ClassCastException - If source or target is not an exception
public ExceptionMapping(java.lang.Class<? extends java.lang.Throwable> sourceClass,
java.lang.Class<? extends java.lang.Throwable> targetClass,
boolean wrap)
sourceClass - The source exception classtargetClass - The target exception classwrap - Whether to wrap the original exception upon mapping| Method Detail |
|---|
public java.lang.Class<? extends java.lang.Throwable> getSource()
public java.lang.Class<? extends java.lang.Throwable> getTarget()
public boolean getWrap()
true if to wrap original exceptionpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - The object to compare
true if of equal valuepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
Lima-Loa | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||