public class StackTraceUtil extends Object
Constructor and Description |
---|
StackTraceUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
buildStackTrace(String msg,
StackTraceElement[] stackTraceElements,
StringBuilder sb,
int maxDepth)
Builds a message with the stack trace of the form:
|
public static void buildStackTrace(String msg, StackTraceElement[] stackTraceElements, StringBuilder sb, int maxDepth)
SOME MESSAGE: Started at: com.package... com.package... ...
msg
- the initial error messagestackTraceElements
- the stack trace elementssb
- the buffer to append tomaxDepth
- the maximum number of trace elements to output. 0 or less means output all.Copyright © 2005–2015 Alfresco Software. All rights reserved.