Examples of ExpressionException


Examples of org.apache.cayenne.exp.ExpressionException

                            .getOperand(0), aliasMap);
                }
            };
        }

        throw new ExpressionException("Invalid expression type: '"
                + pathExp.expName()
                + "',  OBJ_PATH is expected.");
    }
View Full Code Here

Examples of org.apache.cayenne.exp.ExpressionException

            throws ExpressionException {

        // resolve DB_PATH if we can
        if (pathExp.getType() == Expression.DB_PATH) {
            if (getDbEntity() == null) {
                throw new ExpressionException("Can't resolve DB_PATH '"
                        + pathExp
                        + "', DbEntity is not set.");
            }

            return getDbEntity().resolvePathComponents(pathExp);
        }

        if (pathExp.getType() == Expression.OBJ_PATH) {
            return new PathIterator((String) pathExp.getOperand(0));
        }

        throw new ExpressionException("Invalid expression type: '"
                + pathExp.expName()
                + "',  OBJ_PATH is expected.");
    }
View Full Code Here

Examples of org.apache.cocoon.components.expression.ExpressionException

    public JexlExpression(String language, String expression) throws ExpressionException {
        super(language, expression);
        try {
            this.compiledExpression = org.apache.commons.jexl.ExpressionFactory.createExpression(expression);
        } catch (Exception e) {
            throw new ExpressionException("Couldn't create expression " + expression, e);
        }
    }
View Full Code Here

Examples of org.apache.cocoon.el.ExpressionException

        Iterator iter;
        try {
            iter = introspector.getIterator(result, new Info("Unknown", 0, 0));
        } catch (Exception e) {
            throw new ExpressionException("Couldn't get an iterator from expression " + getExpression(), e);
        }

        if (iter == null) {
            iter = EMPTY_ITER;
        }
View Full Code Here

Examples of org.codehaus.aspectwerkz.exception.ExpressionException

     * Compiles the pattern for the expression.
     */
    protected void compilePattern() {
        PatternTuple tuple = null;
        if (m_type == null) {
            throw new ExpressionException("pointcut type in context can not be null");
        }
        if (m_type.equals(PointcutType.EXECUTION)) {
            if (Pattern.isConstructor(m_expression)) {
                tuple = PatternFactory.createConstructorPatternTuple(m_expression, m_package);
                m_memberPattern = Pattern.compileConstructorPattern(tuple.getMemberPattern());
View Full Code Here

Examples of org.codehaus.aspectwerkz.expression.ExpressionException

            } else {
                namePattern = Strings.replaceSubString(namePattern, "*", "[a-zA-Z0-9_$]*");
            }
            m_namePattern = new com.karneim.util.collection.regex.Pattern(namePattern);
        } catch (Throwable e) {
            throw new ExpressionException("type pattern is not well formed: " + namePattern, e);
        }
    }
View Full Code Here

Examples of org.outerj.expression.ExpressionException

        return result == null? Boolean.TRUE: Boolean.FALSE;
    }

    public void check() throws ExpressionException {
        if (arguments.size() != 1) {
            throw new ExpressionException(getDescription() + " requires one argument.", getLine(), getColumn());
        }
    }
View Full Code Here

Examples of org.springframework.expression.ExpressionException

    assertEquals("[LITERAL_STRING:abc](0,3)", token.toString());
  }

  @Test
  public void exceptions() {
    ExpressionException exprEx = new ExpressionException("test");
    assertEquals("test", exprEx.getSimpleMessage());
    assertEquals("test", exprEx.toDetailedString());
    assertEquals("test", exprEx.getMessage());

    exprEx = new ExpressionException("wibble", "test");
    assertEquals("test", exprEx.getSimpleMessage());
    assertEquals("Expression 'wibble': test", exprEx.toDetailedString());
    assertEquals("Expression 'wibble': test", exprEx.getMessage());

    exprEx = new ExpressionException("wibble", 3, "test");
    assertEquals("test", exprEx.getSimpleMessage());
    assertEquals("Expression 'wibble' @ 3: test", exprEx.toDetailedString());
    assertEquals("Expression 'wibble' @ 3: test", exprEx.getMessage());
  }
View Full Code Here

Examples of railo.runtime.exp.ExpressionException

    int mTop =   toPoint(margintop,unitFactor);
    int mLeft = toPoint(marginleft,unitFactor);
    int mBottom=toPoint(marginbottom,unitFactor);
    int mRight=toPoint(marginright,unitFactor);
    if((mLeft+mRight)>dimension.getWidth())
      throw new ExpressionException("current document width ("+Caster.toString(dimension.getWidth())+" point) is smaller that specified horizontal margin  ("+Caster.toString(mLeft+mRight)+" point).",
          "1 in = "+Math.round(1*UNIT_FACTOR_IN)+" point and 1 cm = "+Math.round(1*UNIT_FACTOR_CM)+" point");
    if((mTop+mBottom)>dimension.getHeight())
      throw new ExpressionException("current document height ("+Caster.toString(dimension.getHeight())+" point) is smaller that specified vertical margin  ("+Caster.toString(mTop+mBottom)+" point).",
          "1 in = "+Math.round(1*UNIT_FACTOR_IN)+" point and 1 cm = "+Math.round(1*UNIT_FACTOR_CM)+" point");
   
    // Size
    pd4ml.setPageInsets(new Insets(mTop,mLeft,mBottom,mRight));
    pd4ml.setPageSize(dimension);
View Full Code Here

Examples of uk.org.ogsadai.expression.arithmetic.ExpressionException

        {
            throw new ActivityTerminatedException();
        }
        catch (ColumnNotFoundException e)
        {
            throw new ActivityUserException(new ExpressionException(e));
        }
        catch (UnsupportedOperandTypeException e)
        {
            throw new ActivityUserException(new ExpressionException(e));
        }
        catch (ExpressionException e)
        {
            throw new ActivityUserException(e);
        }
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.