public abstract class ThrowableHelper
extends java.lang.Object
Constructor and Description |
---|
ThrowableHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getMessages(java.lang.Throwable ex)
Recursively gets exception messages and concatenate them.
|
static java.lang.String |
getStackTrace(java.lang.Throwable ex)
This method returns a recursive dump of an Throwable object as a simple String
|
static java.lang.String[] |
getStackTraceLines(java.lang.Throwable ex)
This method returns a recursive dump of an Throwable object as an array of strings
|
public static java.lang.String getStackTrace(java.lang.Throwable ex)
ex
- the throwable object (Exception, Error...)public static java.lang.String[] getStackTraceLines(java.lang.Throwable ex)
ex
- the throwable object (Exception, Error...)public static java.lang.String getMessages(java.lang.Throwable ex)
ex
- the exception to get messages from