Package railo.runtime.exp

Examples of railo.runtime.exp.CustomTypeException


      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(),"");
    }
    if(object instanceof Struct){
      Struct sct=(Struct) object;
      String type=Caster.toString(sct.get(KeyConstants._type,""),"").trim();
      String msg=Caster.toString(sct.get(KeyConstants._message,null),null);
      if(!StringUtil.isEmpty(msg, true)) {
        String detail=Caster.toString(sct.get(KeyConstants._detail,null),null);
        String errCode=Caster.toString(sct.get("ErrorCode",null),null);
        String extInfo=Caster.toString(sct.get("ExtendedInfo",null),null);
       
        PageException pe=null;
        if("application".equalsIgnoreCase(type))
          pe = new ApplicationException(msg, detail);
        else if("expression".equalsIgnoreCase(type))
          pe = new ExpressionException(msg, detail);
        else
          pe=new CustomTypeException(msg, detail, errCode, type, extInfo);
       
        // Extended Info
        if(!StringUtil.isEmpty(extInfo,true))pe.setExtendedInfo(extInfo);
 
        // Error Code
View Full Code Here


  public int doStartTag() throws PageException  {
   
    _doStartTag(message);
    _doStartTag(object);
   
    throw new CustomTypeException( "",detail,errorcode,type,extendedinfo,level);
  }
View Full Code Here

  private void _doStartTag(Object obj) throws PageException {
    if(!StringUtil.isEmpty(obj)){
      PageException pe = toPageException(obj,null);
      if(pe!=null) throw pe;
     
      CustomTypeException exception = new CustomTypeException(Caster.toString(obj),detail,errorcode,type,extendedinfo,level);
      throw exception;
    }
  }
View Full Code Here

    public PageException createCustomTypeException(String message, String detail, String errorcode, String customType) {
        return createCustomTypeException(message, detail, errorcode, customType, null);
    }
   
    public PageException createCustomTypeException(String message, String detail, String errorcode, String customType,String extendedInfo) {
        return new CustomTypeException(message,detail,errorcode,customType,extendedInfo);
    }
View Full Code Here

TOP

Related Classes of railo.runtime.exp.CustomTypeException

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.