public class SoftException extends RuntimeException
declare soft: TypePattern: Pointcut
.
At the join points, any exceptions thrown which match
TypePattern will be wrapped in SoftException
and rethrown. You can get the original exception using
getWrappedThrowable()
or
getCause()
.Constructor and Description |
---|
SoftException(Throwable inner) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause() |
Throwable |
getWrappedThrowable() |
void |
printStackTrace() |
void |
printStackTrace(PrintStream stream) |
void |
printStackTrace(PrintWriter stream) |
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
public SoftException(Throwable inner)
public Throwable getWrappedThrowable()
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream stream)
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter stream)
printStackTrace
in class Throwable