Package de.intarsys.tools.exception
Class ExceptionTools
java.lang.Object
de.intarsys.tools.exception.ExceptionTools
Tool class for dealing with Exceptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IOExceptioncreateIOException(String message, Throwable cause) static voidfail()Simply fail with aRuntimeException.static <T> TfutureSimpleGet(Future<T> future) static <T extends Number>
TfutureSimpleGetNumber(Future<T> future) static ThrowablegetInChain(Throwable t, Class<?> clazz) static ThrowableThe root cause oft.static Stringstatic booleanstatic boolean
-
Constructor Details
-
ExceptionTools
public ExceptionTools()
-
-
Method Details
-
createIOException
-
fail
public static void fail()Simply fail with aRuntimeException. -
futureSimpleGet
-
futureSimpleGetNumber
-
getInChain
-
getRoot
The root cause oft.- Parameters:
t- AThrowable.- Returns:
- The most inner cause of
t.
-
getStackTraceString
-
isInChain
-
isKnownReason
-