Search in sources :

Example 1 with AbortException

use of lucee.runtime.exp.AbortException in project Lucee by lucee.

the class BodyTagTryCatchFinallyImpl method doCatch.

@Override
public void doCatch(Throwable t) throws Throwable {
    ExceptionUtil.rethrowIfNecessary(t);
    if (t instanceof PageServletException) {
        PageServletException pse = (PageServletException) t;
        t = pse.getPageException();
    }
    if (bodyContent != null) {
        if (t instanceof AbortException) {
            bodyContent.writeOut(bodyContent.getEnclosingWriter());
        }
        bodyContent.clearBuffer();
    }
    throw t;
}
Also used : PageServletException(lucee.runtime.exp.PageServletException) AbortException(lucee.runtime.exp.AbortException)

Aggregations

AbortException (lucee.runtime.exp.AbortException)1 PageServletException (lucee.runtime.exp.PageServletException)1