Package com.jogamp.common
Class ExceptionUtils
java.lang.Object
com.jogamp.common.ExceptionUtils
- Since:
- 2.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface allowingThrowablespecializations to provide their custom stack trace presentation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddumpStack(PrintStream out) static voiddumpStack(PrintStream out, int skip, int depth) static voiddumpStack(PrintStream out, StackTraceElement[] stack, int skip, int depth) static voiddumpStack(PrintStream out, Throwable t, int skip, int depth) static voiddumpThrowable(String additionalDescr, Throwable t) Dumps aThrowabletoSystem.errin a decorating message including the current thread name, and itsstack trace.static voiddumpThrowable(String additionalDescr, Throwable t, int causeDepth, int stackDepth) Dumps aThrowabletoSystem.errin a decorating message including the current thread name, and itsstack trace.static intprintCause(PrintStream s, String causeStr, Throwable cause, int causeIdx, int causeDepth, int stackDepth) static voidprintStackTrace(PrintStream s, Throwable t, int causeDepth, int stackDepth)
-
Constructor Details
-
ExceptionUtils
public ExceptionUtils()
-
-
Method Details
-
dumpStack
-
dumpStack
-
dumpStack
-
dumpStack
-
printCause
public static int printCause(PrintStream s, String causeStr, Throwable cause, int causeIdx, int causeDepth, int stackDepth) - Parameters:
s- output streamcauseStr- the cause titlecause- theThrowablecause for outputcauseIdx- the cause index over all causes known by callercauseDepth- the maximum depth for causes, or-1for allstackDepth- the maximum depth for stack entries, or-1for all- Since:
- 2.3.2
-
printStackTrace
- Parameters:
s- output streamt- theThrowablefor outputcauseDepth- the maximum depth for causes, or-1for allstackDepth- the maximum depth for stack entries, or-1for all- Since:
- 2.3.2
-
dumpThrowable
Dumps aThrowabletoSystem.errin a decorating message including the current thread name, and itsstack trace.Implementation will iterate through all
causes. -
dumpThrowable
public static void dumpThrowable(String additionalDescr, Throwable t, int causeDepth, int stackDepth) Dumps aThrowabletoSystem.errin a decorating message including the current thread name, and itsstack trace.Implementation will iterate through all
causes.
-