Examples of EvaluationException


Examples of org.openrdf.query.EvaluationException

    throws ValueExprEvaluationException, StoreException
  {
    Function function = FunctionRegistry.getInstance().get(node.getURI());

    if (function == null) {
      throw new EvaluationException("Unknown function '" + node.getURI() + "'");
    }

    List<? extends ValueExpr> args = node.getArgs();

    Value[] argValues = new Value[args.size()];
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.EvaluationException

  private LinkCustomizer createLinkCustomizer(final String configIndicator) throws EvaluationException
  {
    final DrillDownProfile downProfile = DrillDownProfileMetaData.getInstance().getDrillDownProfile(configIndicator);
    if (downProfile == null)
    {
      throw new EvaluationException(LibFormulaErrorValue.ERROR_UNEXPECTED_VALUE);
    }
    try
    {
      return (LinkCustomizer) downProfile.getLinkCustomizerType().newInstance();
    }
    catch (InstantiationException e)
    {
      throw new EvaluationException(LibFormulaErrorValue.ERROR_UNEXPECTED_VALUE);
    }
    catch (IllegalAccessException e)
    {
      throw new EvaluationException(LibFormulaErrorValue.ERROR_UNEXPECTED_VALUE);
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.EvaluationException

    public TypeValuePair evaluate(final FormulaContext context,final ParameterCallback parameters)
            throws EvaluationException
    {
        if (parameters.getParameterCount() != 0)
        {
            throw new EvaluationException(LibFormulaErrorValue.ERROR_ARGUMENTS_VALUE);
        }

        return new TypeValuePair(TextType.TYPE, context.getConfiguration().getConfigProperty(ReportEngineParameterNames.AUTHOR));
    }
View Full Code Here

Examples of org.pentaho.reporting.libraries.formula.EvaluationException

    public TypeValuePair evaluate(final FormulaContext context,final ParameterCallback parameters)
            throws EvaluationException
    {
        if (parameters.getParameterCount() != 0)
        {
            throw new EvaluationException(LibFormulaErrorValue.ERROR_ARGUMENTS_VALUE);
        }

        return new TypeValuePair(TextType.TYPE, context.getConfiguration().getConfigProperty(ReportEngineParameterNames.TITLE));
    }
View Full Code Here

Examples of org.springframework.binding.expression.EvaluationException

  }

  public void setValue(Object context, Object value) throws EvaluationException {
    Object result = getValue(context);
    if (result == null) {
      throw new EvaluationException(context.getClass(), collectionExpression.getExpressionString(),
          "Unable to access collection value for expression '" + collectionExpression.getExpressionString()
              + "'", new IllegalStateException(
              "The collection expression evaluated to a [null] reference"));
    }
    Assert.isInstanceOf(Collection.class, result, "Not a collection: ");
View Full Code Here

Examples of org.springframework.expression.EvaluationException

      return (T) value;
    }
    if (context != null) {
      return (T) context.getTypeConverter().convertValue(value, typedValue.getTypeDescriptor(), TypeDescriptor.valueOf(targetType));
    }
    throw new EvaluationException("Cannot convert value '" + value + "' to type '" + targetType.getName() + "'");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.