org.aspectj.lang
Class SoftException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--org.aspectj.lang.SoftException
- All Implemented Interfaces:
- java.io.Serializable
- public class SoftException
- extends java.lang.RuntimeException
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()
.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SoftException
public SoftException(java.lang.Throwable inner)
getWrappedThrowable
public java.lang.Throwable getWrappedThrowable()