Package one.microstream.util
Class UtilStackTrace
java.lang.Object
one.microstream.util.UtilStackTrace
public class UtilStackTrace extends Object
-
Constructor Summary
Constructors Constructor Description UtilStackTrace()
-
Method Summary
Modifier and Type Method Description static StackTraceElement[]
cutStacktraceByN(StackTraceElement[] stacktrace, int n)
static <T extends Throwable>
TcutStacktraceByN(T throwable, int n)
static <T extends Throwable>
TcutStacktraceByOne(T throwable)
static <T extends Throwable>
TcutStacktraceTo(T t, Class<?> c, String methodName)
static <T extends Throwable>
StringgetThrowingMethodName(T throwable)
Get the method name of the first method of the stack trace of the supplied throwable.
-
Constructor Details
-
UtilStackTrace
public UtilStackTrace()
-
-
Method Details
-
cutStacktraceTo
-
cutStacktraceByOne
-
cutStacktraceByN
-
cutStacktraceByN
-
getThrowingMethodName
Get the method name of the first method of the stack trace of the supplied throwable.- Type Parameters:
T
- type parameter.- Parameters:
throwable
- that supplies the stack trace.- Returns:
- The Method name as String.
-