public interface InspectableThrowableI
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
$0 |
Modifier and Type | Method and Description |
---|---|
default java.lang.Throwable |
filterStackTrace()
non-static version of
ThrowableTools.filterStackTrace(Throwable) |
default java.lang.Throwable |
getCauseOfClass(java.lang.Class clazz)
Returns either this Throwable or the first
Throwable from the "cause hierarchy" matching the given class. |
default java.lang.Throwable |
getDeepestCauseOfClass(java.lang.Class clazz) |
default java.lang.Throwable |
getRootCause()
Returns the root cause of this Throwable.
|
default java.lang.Throwable |
getThisAsThrowable() |
default boolean |
hasCauseOfClass(java.lang.Class clazz) |
default void |
printStackTrace(boolean filtered)
Prints stacktrace of this Throwable to
System.err ,
filtering out certain stack frames with default filtering if requested. |
default void |
printStackTrace(java.io.PrintStream ps)
Prints stacktrace of this Throwable to the given
PrintStream , filtering out certain stack frames if requested. |
default void |
printStackTrace(java.io.PrintStream ps,
OutputConfiguration outputConfig) |
default void |
printStackTrace(java.io.PrintWriter pw)
Prints stacktrace of this Throwable to the given
PrintWriter , filtering out certain stack frames if requested. |
default void |
printStackTrace(java.io.PrintWriter pw,
OutputConfiguration outputConfig) |
static final java.lang.String $0
default java.lang.Throwable getThisAsThrowable()
default java.lang.Throwable getRootCause()
default boolean hasCauseOfClass(java.lang.Class clazz)
default java.lang.Throwable getCauseOfClass(java.lang.Class clazz)
Throwable
from the "cause hierarchy" matching the given class.
Returns null if no matching Throwable
exists.clazz
- the Class
the wanted Throwable
should be ofThrowable
from the "cause
hierarchy" matching the given class or null if no matching Throwable
existsdefault java.lang.Throwable getDeepestCauseOfClass(java.lang.Class clazz)
default void printStackTrace(boolean filtered)
System.err
,
filtering out certain stack frames with default filtering if requested.filtered
- if true filter out uninteresting stack frames; if false
print out all stack framesdefault void printStackTrace(java.io.PrintStream ps)
PrintStream
, filtering out certain stack frames if requested.ps
- the PrintStream
to print tooutputConfig
- a OutputConfiguration
to configure text written to sdefault void printStackTrace(java.io.PrintStream ps, OutputConfiguration outputConfig)
default void printStackTrace(java.io.PrintWriter pw)
PrintWriter
, filtering out certain stack frames if requested.pw
- the PrintWriter
to print tooutputConfig
- a OutputConfiguration
to configure text written to sdefault void printStackTrace(java.io.PrintWriter pw, OutputConfiguration outputConfig)
default java.lang.Throwable filterStackTrace()
ThrowableTools.filterStackTrace(Throwable)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.