Package railo.runtime.interpreter

Examples of railo.runtime.interpreter.InterpreterException


          arguments[index++]=new Casting( vt.type, CFTypes.toShort(vt.type, false, CFTypes.TYPE_UNKNOW), vt.value).getValue(pc)
        }
       
        for(int y=0;y<names.length;y++){
          if(names[y]!=null) {
            ExpressionException ee = new InterpreterException("argument ["+names[y]+"] is not allowed for function ["+flf.getName()+"]");
            UDFUtil.addFunctionDoc(ee, flf);
            throw ee;
          }
        }
           
View Full Code Here


        return new VT(null,type,-1);
      }
      return new VT(defaultValue,type,-1);
     
    }
    ExpressionException ee = new InterpreterException("missing required argument ["+flfan+"] for function ["+flfa.getFunction().getName()+"]");
    UDFUtil.addFunctionDoc(ee, flfa.getFunction());
    throw ee;
  }
View Full Code Here

          count++;
        }
      }
    }
    if(count!=0 && count!=refArgs.length){
      ExpressionException ee = new InterpreterException("invalid argument for function "+flf.getName()+", you can not mix named and unnamed arguments");
      UDFUtil.addFunctionDoc(ee, flf);
      throw ee;
    }
    return count!=0;
  }
View Full Code Here

  private Set coll;


    public Assign(Ref coll, Ref value) throws ExpressionException {
        if(!(coll instanceof Set))
          throw new InterpreterException("invalid assignment left-hand side ("+coll.getTypeName()+")");
        this.coll=(Set) coll;
        this.value=value;
    }
View Full Code Here

       
        // TODO no idea if this is ever used
        if(name instanceof Set){
          return new FunctionValueImpl(railo.runtime.type.util.ListUtil.arrayToList(toStringArray(pc,(Set)name),"."),refValue==null?objValue:refValue.getValue(pc));
        }
        throw new InterpreterException("invalid syntax in named argument");
        //return new FunctionValueImpl(key,value.getValue());
    }
View Full Code Here

TOP

Related Classes of railo.runtime.interpreter.InterpreterException

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.