Examples of EvaluationException


Examples of javax.faces.el.EvaluationException

            throw new PropertyNotFoundException("Bean: "
                + base.getClass().getName() + ", index " + index, e);
        }
        catch (Exception e)
        {
            throw new EvaluationException("Exception getting type of index " + index + " of bean with class : "
                + base.getClass().getName(), e);
        }
    }
View Full Code Here

Examples of jp.ac.kobe_u.cs.prolog.lang.EvaluationException

    return cont;
  }

  protected Term inverseConversion(Object o) {
    if (o == null) {
      throw new EvaluationException(this, 2, "undefined");
    } else if (o instanceof Byte || o instanceof Short
        || o instanceof Integer || o instanceof Long) {
      return new IntegerTerm(((Number) o).intValue());
    } else if (o instanceof Float || o instanceof Double) {
      return new DoubleTerm(((Number) o).doubleValue());
View Full Code Here

Examples of net.sf.lapg.templates.api.EvaluationException

    if (kind == MINUS) {
      Object value = env.evaluate(expr, context, false);
      if (value instanceof Integer) {
        return -((Integer) value).intValue();
      } else {
        throw new EvaluationException("unary minus expression should be Integer");
      }
    }

    throw new EvaluationException("internal error: unknown kind");
  }
View Full Code Here

Examples of org.apache.ode.bpel.explang.EvaluationException

                if (th != null) {
                    cause = th;
                    if (cause.getCause() != null) cause = cause.getCause();
                }
            }
            throw new EvaluationException("Error while executing an XPath expression: " + cause.toString(), cause);
        } catch (WrappedResolverException wre) {
            wre.printStackTrace();
            throw (FaultException)wre.getCause();
        } catch (Throwable t) {
            t.printStackTrace();
            throw new EvaluationException("Error while executing an XPath expression: ", t);
        }

    }
View Full Code Here

Examples of org.apache.poi.hssf.record.formula.eval.EvaluationException

      NumberEval ne = (NumberEval) ve;
      temp.add(ne.getNumberValue());
      return;
    }
    if (ve instanceof ErrorEval) {
      throw new EvaluationException((ErrorEval) ve);
    }
    if (ve instanceof StringEval) {
      if (isViaReference) {
        // ignore all ref strings
        return;
      }
      String s = ((StringEval) ve).getStringValue();
      Double d = OperandResolver.parseDouble(s);
      if(d == null) {
        throw new EvaluationException(ErrorEval.VALUE_INVALID);
      }
      temp.add(d.doubleValue());
      return;
    }
    if (ve instanceof BoolEval) {
View Full Code Here

Examples of org.apache.poi.ss.formula.eval.EvaluationException

  public static double calculate(double pStartDateVal, double pEndDateVal, int basis) throws EvaluationException {

    if (basis < 0 || basis >= 5) {
      // if basis is invalid the result is #NUM!
      throw new EvaluationException(ErrorEval.NUM_ERROR);
    }

    // common logic for all bases

    // truncate day values
View Full Code Here

Examples of org.apache.tiles.evaluator.EvaluationException

            throw new IllegalArgumentException("The expression parameter cannot be null");
        }
        try {
            return Ognl.getValue(expression, request);
        } catch (OgnlException e) {
            throw new EvaluationException("Cannot evaluate OGNL expression '"
                    + expression + "'", e);
        }
    }
View Full Code Here

Examples of org.eclipse.xtext.xbase.interpreter.impl.EvaluationException

        index++;
      }
      IEvaluationResult result = evaluate(m.getBody(), context, indicator);
      if (result.getException() != null) {
        result.getException().printStackTrace();
        throw new EvaluationException(result.getException());
      }
      return result.getResult();
    } else {
      return super.invokeOperation(operation, receiver, argumentValues, c, indicator);
    }
View Full Code Here

Examples of org.jacorb.notification.filter.EvaluationException

    }

    public EvaluationResult extractFilterableData(EvaluationContext evaluationContext,
            ComponentName componentName, String headerName) throws EvaluationException
    {
        throw new EvaluationException();
    }
View Full Code Here

Examples of org.jfree.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
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.