Package org.aspectj.lang
Class SoftException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.aspectj.lang.SoftException
- All Implemented Interfaces:
Serializable
Wrapper for checked exceptions matched by a 'declare soft'.
You can soften checked exceptions at join points by using
the form
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().- See Also:
- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCause()voidvoidprintStackTrace(PrintStream stream)voidprintStackTrace(PrintWriter stream)Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
SoftException
-
-
Method Details
-
getWrappedThrowable
-
getCause
-
printStackTrace
public void printStackTrace()- Overrides:
printStackTracein classThrowable
-
printStackTrace
- Overrides:
printStackTracein classThrowable
-
printStackTrace
- Overrides:
printStackTracein classThrowable
-