public class StackTraceUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getCaller()
Name of caller for debug/trace/logging purposes.
|
static String |
getCallers(int nBack)
Names of callers for debug/trace/logging purposes.
|
static String |
getCallersCompact(int nBack)
Names of callers for debug/trace/logging purposes.
|
static String |
stackTraceToString(Exception e,
int nBack) |
static String |
stackTraceToString(StackTraceElement[] trace,
int nBack) |
public static String getCaller()
public static String getCallers(int nBack)
nBack
- how far up the stack to go (should be >=1)public static String getCallersCompact(int nBack)
nBack
- how far up the stack to go (should be >=1)public static String stackTraceToString(StackTraceElement[] trace, int nBack)
Copyright © 2016 Metron, Inc.. All rights reserved.