Package org.alfresco.error
Class StackTraceUtil
- java.lang.Object
-
- org.alfresco.error.StackTraceUtil
-
public class StackTraceUtil extends Object
Helper class around outputting stack traces.- Author:
- Derek Hulley
-
-
Constructor Summary
Constructors Constructor Description StackTraceUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
buildStackTrace(String msg, StackTraceElement[] stackTraceElements, StringBuilder sb, int maxDepth)
Builds a message with the stack trace of the form:
-
-
-
Method Detail
-
buildStackTrace
public static void buildStackTrace(String msg, StackTraceElement[] stackTraceElements, StringBuilder sb, int maxDepth)
Builds a message with the stack trace of the form:SOME MESSAGE: Started at: com.package... com.package... ...
- Parameters:
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.
-
-