Package railo.runtime.ext.tag

Source Code of railo.runtime.ext.tag.BodyTagTryCatchFinallyImpl

package railo.runtime.ext.tag;

import javax.servlet.jsp.tagext.TryCatchFinally;

import railo.runtime.exp.AbortException;
import railo.runtime.exp.PageServletException;


/**
* extends Body Support Tag eith TryCatchFinally Functionality
*/
public abstract class BodyTagTryCatchFinallyImpl extends BodyTagImpl implements TryCatchFinally{

  @Override
  public void doCatch(Throwable t) throws Throwable {
    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;
  }

  @Override
  public void doFinally() {
   
  }
 
}
TOP

Related Classes of railo.runtime.ext.tag.BodyTagTryCatchFinallyImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.