org.aspectj.lang

Class SoftException


public class SoftException
extends 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() or getCause().

Constructor Summary

SoftException(Throwable inner)

Method Summary

Throwable
getCause()
Throwable
getWrappedThrowable()
void
printStackTrace()
void
printStackTrace(PrintStream stream)
void
printStackTrace(PrintWriter stream)

Constructor Details

SoftException

public SoftException(Throwable inner)

Method Details

getCause

public Throwable getCause()

getWrappedThrowable

public Throwable getWrappedThrowable()

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(PrintStream stream)

printStackTrace

public void printStackTrace(PrintWriter stream)