|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--gov.sns.tools.ExceptionWrapper
Convenience class to wrap an exception with a runtime exception so exception handling isn't so irritating. This method was implemented before Java supported exception causes. It has been updated to use the new support and this class remains for backward compatibility.
| Constructor Summary | |
ExceptionWrapper(java.lang.Exception cause)
Creates new ExceptionWrapper |
|
| Method Summary | |
java.lang.Exception |
rootException()
Get the root cause |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ExceptionWrapper(java.lang.Exception cause)
| Method Detail |
public java.lang.Exception rootException()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||