Package com.jogamp.common
Interface ExceptionUtils.CustomStackTrace
-
- All Known Implementing Classes:
SourcedInterruptedException
- Enclosing class:
- ExceptionUtils
public static interface ExceptionUtils.CustomStackTrace
Interface allowingThrowable
specializations to provide their custom stack trace presentation.- Since:
- 2.3.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
printCauseStack(PrintStream s, String causeStr, int causeIdx, int stackDepth)
void
printStackTrace(PrintStream s, int causeDepth, int stackDepth)
CustomprintStackTrace
method, similar toThrowable#printStackTrace(PrintStream, int, int)
.
-
-
-
Method Detail
-
printCauseStack
void printCauseStack(PrintStream s, String causeStr, int causeIdx, int stackDepth)
- Parameters:
s
- output streamcauseStr
- the cause titlecauseIdx
- the cause index over all causes known by callerstackDepth
- the maximum depth for stack entries, or-1
for all- Since:
- 2.3.2
-
printStackTrace
void printStackTrace(PrintStream s, int causeDepth, int stackDepth)
CustomprintStackTrace
method, similar toThrowable#printStackTrace(PrintStream, int, int)
.- Parameters:
s
- output streamcauseDepth
- the maximum depth for causes, or-1
for allstackDepth
- the maximum depth for stack entries, or-1
for all
-
-