Package org.alfresco.error
Class StackTraceUtil
java.lang.Object
org.alfresco.error.StackTraceUtil
Helper class around outputting stack traces.
- Author:
- Derek Hulley
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
buildStackTrace
(String msg, StackTraceElement[] stackTraceElements, StringBuilder sb, int maxDepth) Builds a message with the stack trace of the form:
-
Constructor Details
-
StackTraceUtil
public StackTraceUtil()
-
-
Method Details
-
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.
-