|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscriptella.util.ExceptionUtils
public final class ExceptionUtils
Utility class to work with throwables.
| Method Summary | |
|---|---|
static java.lang.Throwable |
getCause(java.lang.Throwable throwable)
This method checks if throwable has cause. |
static void |
ignoreThrowable(java.lang.Throwable throwable)
Utility method to ignore non important exceptions. |
static void |
throwUnchecked(java.lang.Throwable unchecked)
This method throws unchecked throwable, i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.Throwable getCause(java.lang.Throwable throwable)
cause.
If cause==null, this method tries to obtain cause based on throwable type,
e.g. SQLException.getNextException()
throwable - throwable to find cause.
public static void throwUnchecked(java.lang.Throwable unchecked)
Error or RuntimeException.
unchecked - unchecked throwable.public static void ignoreThrowable(java.lang.Throwable throwable)
throwable - throwable to ignore.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||