public class ExceptionWithFilteredStacktrace extends IRuntimeException
Exceptions that overwrites the
printStackTrace() methods to always output them filtered with
the defaults filters for "uninteresting" stack frames from
IRuntimeException.
Either extend custom exceptions from this class or wrap exceptions with this
class by creating a new ExceptionWithFilteredStacktrace instance
with the actual exception as the cause.| Constructor and Description |
|---|
ExceptionWithFilteredStacktrace() |
ExceptionWithFilteredStacktrace(java.lang.String msg) |
ExceptionWithFilteredStacktrace(java.lang.String msg,
java.lang.Throwable cause) |
ExceptionWithFilteredStacktrace(java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getStackTraceAsString() |
static ExceptionWithFilteredStacktrace |
makeFiltered(java.lang.Throwable t)
If the given
Throwable already is an
ExceptionWithFilteredStacktrace simply returns it; otherwise
"wraps" it in a new ExceptionWithFilteredStacktrace and returns
that. |
void |
printStackTrace() |
void |
printStackTrace(java.io.PrintStream ps)
Prints stacktrace of this
IRuntimeException to the given
PrintStream, filtering out certain stack frames if requested. |
void |
printStackTrace(java.io.PrintWriter pw)
Prints stacktrace of this
IRuntimeException to the given
PrintWriter, filtering out certain stack frames if requested. |
createFromStackTraceString, dumpJVMStack, dumpJVMStack, dumpStack, dumpStack, dumpStack, filterAndDumpStackTrace, filterStackTrace, filterStackTrace, getAllCauses, getCause, getCauseMethod, getCauseOfClass, getDeepestCauseOfClass, getErrortext, getErrortext, getRootCause, getStackTraceAsString, getStackTraceAsString, getStackTraceAsString, getStackTraceAsString, getStackTraceAsString, getStackTraceAsString, getStackTraceElement, getStackTraceElement, hasCauseOfClass, isKnownWrapperException, ofStackTraceString, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTrace, printStackTraceAsCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCauseOfClass, getDeepestCauseOfClass, getRootCause, getThisAsThrowable, hasCauseOfClass, printStackTracepublic ExceptionWithFilteredStacktrace(java.lang.Throwable cause)
public ExceptionWithFilteredStacktrace()
public ExceptionWithFilteredStacktrace(java.lang.String msg)
public ExceptionWithFilteredStacktrace(java.lang.String msg,
java.lang.Throwable cause)
public static ExceptionWithFilteredStacktrace makeFiltered(java.lang.Throwable t)
Throwable already is an
ExceptionWithFilteredStacktrace simply returns it; otherwise
"wraps" it in a new ExceptionWithFilteredStacktrace and returns
that.public void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream ps)
IRuntimeExceptionIRuntimeException to the given
PrintStream, filtering out certain stack frames if requested.printStackTrace in interface InspectableThrowableIprintStackTrace in class IRuntimeExceptionps - the PrintStream to print topublic void printStackTrace(java.io.PrintWriter pw)
IRuntimeExceptionIRuntimeException to the given
PrintWriter, filtering out certain stack frames if requested.printStackTrace in interface InspectableThrowableIprintStackTrace in class IRuntimeExceptionpw - the PrintWriter to print topublic java.lang.String getStackTraceAsString()
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.