public class TraceUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getCurrentStack()
Returns the current stack of the caller.
|
static java.lang.String |
getCurrentStack(int numberOfTopFramesToRemove)
Returns the current stack of the caller.
|
static java.lang.String |
getStackTrace(java.lang.Throwable t)
Returns a stack trace of the given throwable as a string.
|
@NonNull public static java.lang.String getCurrentStack()
@NonNull public static java.lang.String getCurrentStack(int numberOfTopFramesToRemove)
numberOfTopFramesToRemove - the number of top stack frames to remove@NonNull
public static java.lang.String getStackTrace(@NonNull
java.lang.Throwable t)
t - the throwable to get the stack trace from