Package railo.runtime.exp

Examples of railo.runtime.exp.ExpressionException


       
     
     
      // check parameters
        if(StringUtil.isEmpty(url))
            throw new ExpressionException("url for Remote Client can be a empty value");
       

        Element clients=_getRootElement("remote-clients");

        Element[] children = ConfigWebFactory.getChildren(clients,"remote-client");
View Full Code Here


      checkWriteAccess();
       if(useTimeServer!=null && useTimeServer.booleanValue() && !StringUtil.isEmpty(timeServer,true)) {
            try {
                new NtpClient(timeServer).getOffset();
            } catch (IOException e) {
                throw new ExpressionException("invalid timeserver (NTP) ["+timeServer+"] ");
            }
       }
       
       boolean hasAccess=ConfigWebUtil.hasAccess(config,SecurityManager.TYPE_SETTING);
       if(!hasAccess)
View Full Code Here

            throw new SecurityException("no access to update remote client settings");
       
       
        Element clients=_getRootElement("remote-clients");
       
        if(StringUtil.isEmpty(url)) throw new ExpressionException("url can be a empty value");
        if(StringUtil.isEmpty(securityKey)) throw new ExpressionException("securityKey can be a empty value");
        if(StringUtil.isEmpty(adminPassword)) throw new ExpressionException("adminPassword can be a empty value");
        url=url.trim();
        securityKey=securityKey.trim();
        adminPassword=adminPassword.trim();
       
        Element[] children = ConfigWebFactory.getChildren(clients,"remote-client");
View Full Code Here

    if("hard".equals(strWrap))      wrap=WRAP_HARD;
    else if("soft".equals(strWrap))    wrap=WRAP_SOFT;
    else if("off".equals(strWrap))    wrap=WRAP_OFF;
    else if("physical".equals(strWrap))  wrap=WRAP_PHYSICAL;
    else if("virtual".equals(strWrap))  wrap=WRAP_VIRTUAL;
    else throw new ExpressionException("invalid value ["+strWrap+"] for attribute wrap, valid values are [hard,soft,off,physical,virtual]");   
  }
View Full Code Here

        if(!res.isFile()){
          Resource res2 = ResourceUtil.toResourceNotExisting(pageContext, (String)source);
          if(res2.isFile())
            res=res2;
          else
            throw new ExpressionException("file or directory "+res+" not exist");
        }
        return new PDFDocument(res,password)
      }
      return new PDFDocument(ResourceUtil.toResourceExisting(pageContext, (String)source),password)
    }
View Full Code Here

    attributes.setEL("width", width);
  }
 
 
    private ExpressionException notSupported(String label) {
    return new ExpressionException("attribute ["+label+"] is not supported");
  }
View Full Code Here

      if(output!=null) pageContext.setVariable(output,wddx2js(Caster.toString(input)));
      else pageContext.forceWrite(wddx2js(Caster.toString(input)));
    }
   
   
    else throw new ExpressionException("invalid attribute action for tag cfwddx, attributes are [cfml2wddx, wddx2cfml,cfml2js, wddx2js].");

  }
View Full Code Here

    Key k;

    while(it.hasNext()){
      k = it.next();
      if( k.equals( key ) )
        return new ExpressionException( "the value from key [" + key.getString() + "] is NULL, which is the same as not existing in CFML" );
      if(sb.length()>0)sb.append(',');
      sb.append(k.getString());
    }

    return new ExpressionException( "key [" + key.getString() + "] doesn't exist (existing keys:" + sb.toString() + ")" );
  }
View Full Code Here

  }
 
  @Override
  public Object call(PageContext pageContext, Object[] args,boolean doIncludePath) throws PageException {
    if(args.length<1)
      throw new ExpressionException("The parameter "+this.arguments[0].getName()+" to function "+getFunctionName()+" is required but was not passed in.");
   
    return remove(pageContext, args[0]);
  }
View Full Code Here

    if(value==null){
      Key[] keys = CollectionUtil.keys(values);
      if(keys.length==1) {
        value=values.get(keys[0]);
      }
      else throw new ExpressionException("The parameter "+key+" to function "+getFunctionName()+" is required but was not passed in.");
    }
   
    return remove(pageContext, value);
  }
View Full Code Here

TOP

Related Classes of railo.runtime.exp.ExpressionException

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.