|
static void | dumpStack (final PrintStream out) |
|
static void | dumpStack (final PrintStream out, final int skip, final int depth) |
|
static void | dumpStack (final PrintStream out, final Throwable t, final int skip, final int depth) |
|
static void | dumpStack (final PrintStream out, final StackTraceElement[] stack, final int skip, final int depth) |
|
static int | printCause (final PrintStream s, final String causeStr, Throwable cause, final int causeIdx, final int causeDepth, final int stackDepth) |
| Prints the given Throwable cause to the output PrintStream s .
|
|
static void | printStackTrace (final PrintStream s, final Throwable t, final int causeDepth, final int stackDepth) |
| Prints the given Throwable to the output PrintStream s .
|
|
static void | dumpThrowable (final String additionalDescr, final Throwable t) |
| Dumps a Throwable to System.err in a decorating message including the current thread name, and its stack trace .
|
|
static void | dumpThrowable (final String additionalDescr, final Throwable t, final int causeDepth, final int stackDepth) |
| Dumps a Throwable to System.err in a decorating message including the current thread name, and its stack trace .
|
|
- Since
- 0.3.0
Definition at line 33 of file ExceptionUtils.java.
◆ dumpStack() [1/4]
static void org.jau.lang.ExceptionUtils.dumpStack |
( |
final PrintStream | out | ) |
|
|
static |
◆ dumpStack() [2/4]
static void org.jau.lang.ExceptionUtils.dumpStack |
( |
final PrintStream | out, |
|
|
final int | skip, |
|
|
final int | depth ) |
|
static |
◆ dumpStack() [3/4]
static void org.jau.lang.ExceptionUtils.dumpStack |
( |
final PrintStream | out, |
|
|
final StackTraceElement[] | stack, |
|
|
final int | skip, |
|
|
final int | depth ) |
|
static |
◆ dumpStack() [4/4]
static void org.jau.lang.ExceptionUtils.dumpStack |
( |
final PrintStream | out, |
|
|
final Throwable | t, |
|
|
final int | skip, |
|
|
final int | depth ) |
|
static |
◆ dumpThrowable() [1/2]
static void org.jau.lang.ExceptionUtils.dumpThrowable |
( |
final String | additionalDescr, |
|
|
final Throwable | t ) |
|
static |
◆ dumpThrowable() [2/2]
static void org.jau.lang.ExceptionUtils.dumpThrowable |
( |
final String | additionalDescr, |
|
|
final Throwable | t, |
|
|
final int | causeDepth, |
|
|
final int | stackDepth ) |
|
static |
Dumps a Throwable
to System.err
in a decorating message including the current thread name, and its stack trace
.
Implementation will iterate through all causes
.
- Parameters
-
additionalDescr | additional text placed before the Throwable details. |
t | the Throwable for output |
causeDepth | the maximum depth for causes, or -1 for all |
stackDepth | the maximum depth for stack entries, or -1 for all |
- Since
- 0.3.0
Definition at line 148 of file ExceptionUtils.java.
◆ printCause()
static int org.jau.lang.ExceptionUtils.printCause |
( |
final PrintStream | s, |
|
|
final String | causeStr, |
|
|
Throwable | cause, |
|
|
final int | causeIdx, |
|
|
final int | causeDepth, |
|
|
final int | stackDepth ) |
|
static |
Prints the given Throwable
cause to the output PrintStream
s
.
- Parameters
-
s | output stream |
causeStr | the cause title |
cause | the Throwable cause for output |
causeIdx | the cause index over all causes known by caller |
causeDepth | the maximum depth for causes, or -1 for all |
stackDepth | the maximum depth for stack entries, or -1 for all |
- Since
- 0.3.0
Definition at line 92 of file ExceptionUtils.java.
◆ printStackTrace()
static void org.jau.lang.ExceptionUtils.printStackTrace |
( |
final PrintStream | s, |
|
|
final Throwable | t, |
|
|
final int | causeDepth, |
|
|
final int | stackDepth ) |
|
static |
Prints the given Throwable
to the output PrintStream
s
.
- Parameters
-
s | output stream |
t | the Throwable for output |
causeDepth | the maximum depth for causes, or -1 for all |
stackDepth | the maximum depth for stack entries, or -1 for all |
- Since
- 0.3.0
Definition at line 114 of file ExceptionUtils.java.
The documentation for this class was generated from the following file: