Package com.github.tadukoo.util
Class ExceptionUtil
java.lang.Object
com.github.tadukoo.util.ExceptionUtil
Util functions for dealing with
It is named ExceptionUtil because it's more common to think of the term Exception than Throwable, though it does work for both.
Throwables
and Exceptions
.
It is named ExceptionUtil because it's more common to think of the term Exception than Throwable, though it does work for both.
- Version:
- Pre-Alpha
- Author:
- Logan Ferree (Tadukoo)
-
Constructor Details
-
ExceptionUtil
private ExceptionUtil()Not allowed to create an ExceptionUtil
-
-
Method Details
-
getStackTraceAsString
Returns a String of the stack trace for the givenThrowable
. The String will be the equivalent of callingThrowable.printStackTrace()
.- Parameters:
t
- The Throwable to get the stack trace of- Returns:
- A String of the stack trace
-