Package railo.runtime.exp

Examples of railo.runtime.exp.ExpressionException



  private static float range(float value, int from, int to) throws ExpressionException {
    if(value>=from && value<=to)
      return value;
    throw new ExpressionException("["+Caster.toString(value)+"] is out of range, value must be between ["+Caster.toString(from)+"] and ["+Caster.toString(to)+"]");
  }
View Full Code Here


  }
 
  @Override
  public Object callWithNamedValues(PageContext pc, Key methodName,Struct args) throws PageException {
   
        throw new ExpressionException("No matching Method/Function ["+methodName+"] for call with named arguments found");
    //return pc.getFunctionWithNamedValues(get(query.getCurrentrow()), methodName, Caster.toFunctionValues(args));
  }
View Full Code Here

    }
  }
 
  public synchronized void rename(Collection.Key columnName,Collection.Key newColumnName) throws ExpressionException {
    int index=getIndexFromKey(columnName);
    if(index==-1) throw new ExpressionException("invalid column name definitions");
    columnNames[index]=newColumnName;
    columns[index].setKey(newColumnName);
  }
View Full Code Here

        return getColumn(key,null)!=null;
  }
 
    @Override
    public String castToString() throws ExpressionException {
        throw new ExpressionException("Can't cast Complex Object Type Query to String",
          "Use Built-In-Function \"serialize(Query):String\" to create a String from Query");
    }
View Full Code Here

  }


    @Override
    public boolean castToBooleanValue() throws ExpressionException {
        throw new ExpressionException("Can't cast Complex Object Type Query to a boolean value");
    }
View Full Code Here

    String str=edgeAction.trim().toUpperCase();
    if("ZERO".equals(str)) this.edgeAction = ZERO_EDGES;
    else if("CLAMP".equals(str)) this.edgeAction = CLAMP_EDGES;
    else if("WRAP".equals(str)) this.edgeAction = WRAP_EDGES;
    else
      throw new ExpressionException("invalid value ["+edgeAction+"] for edgeAction, valid values are [clamp,wrap,zero]");
  }
View Full Code Here

    }


    @Override
    public double castToDoubleValue() throws ExpressionException {
        throw new ExpressionException("Can't cast Complex Object Type Query to a number value");
    }
View Full Code Here

    }


    @Override
    public DateTime castToDateTime() throws ExpressionException {
        throw new ExpressionException("Can't cast Complex Object Type Query to a Date");
    }
View Full Code Here

        return defaultValue;
    }

  @Override
  public int compareTo(boolean b) throws ExpressionException {
    throw new ExpressionException("can't compare Complex Object Type Query with a boolean value");
  }
View Full Code Here

    throw new ExpressionException("can't compare Complex Object Type Query with a boolean value");
  }

  @Override
  public int compareTo(DateTime dt) throws PageException {
    throw new ExpressionException("can't compare Complex Object Type Query with a DateTime Object");
  }
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.