Search in sources :

Example 1 with Excepton

use of lucee.runtime.util.Excepton in project Lucee by lucee.

the class BodyTagTryCatchFinallySupport method doCatch.

/**
 * @see javax.servlet.jsp.tagext.TryCatchFinally#doCatch(java.lang.Throwable)
 */
@Override
public void doCatch(Throwable t) throws Throwable {
    if (t instanceof PageServletException) {
        final PageServletException pse = (PageServletException) t;
        t = pse.getPageException();
    }
    if (bodyContent != null) {
        final Excepton util = CFMLEngineFactory.getInstance().getExceptionUtil();
        if (util.isOfType(Excepton.TYPE_ABORT, t))
            bodyContent.writeOut(bodyContent.getEnclosingWriter());
        bodyContent.clearBuffer();
    }
    throw t;
}
Also used : Excepton(lucee.runtime.util.Excepton) PageServletException(lucee.runtime.exp.PageServletException)

Aggregations

PageServletException (lucee.runtime.exp.PageServletException)1 Excepton (lucee.runtime.util.Excepton)1