Package railo.runtime.exp

Examples of railo.runtime.exp.CatchBlock


    if((object instanceof ObjectWrap))
      return toPageException(((ObjectWrap)object).getEmbededObject(),defaultValue);
   
   
    if(object instanceof CatchBlock) {
      CatchBlock cb = (CatchBlock)object;
      return cb.getPageException();
    }
    if(object instanceof PageException) return (PageException)object;
    if(object instanceof Throwable) {
      Throwable t=(Throwable)object;
      return new CustomTypeException(t.getMessage(),"","",t.getClass().getName(),"");
View Full Code Here


    return getCatchBlock(pc.getConfig());
  }
 
  @Override
  public CatchBlock getCatchBlock(Config config) {
    CatchBlock cb=rootCause.getCatchBlock(config);
    Collection cause = (Collection) Duplicator.duplicate(cb,false);
    //rtn.setEL("message", getMessage());
    if(!cb.containsKey(KeyConstants._detail))cb.setEL(KeyConstants._detail, "Exception throwed while invoking function ["+eventName+"] from "+Constants.APP_CFC);
    cb.setEL(ROOT_CAUSE, cause);
    cb.setEL(CAUSE, cause);
    //cb.setEL("stacktrace", getStackTraceAsString());
    //rtn.setEL("tagcontext", new ArrayImpl());
    //rtn.setEL("type", getTypeAsString());
    cb.setEL(KeyConstants._name, eventName);
    return cb;
  }
View Full Code Here

TOP

Related Classes of railo.runtime.exp.CatchBlock

Copyright © 2018 www.massapicom. 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.