Examples of ExpressionException


Examples of ariba.util.fieldvalue.ExpressionException

                               paths.add(ListUtil.listToString(path, "."));
                               didPush = true;
                           }
                       }
                   } catch (ExprException e) {
                       throw new ExpressionException(e);
                   }
                   visitChildren();
                   if (didPush) ListUtil.removeLastElement(path);
                   return null;
               }
View Full Code Here

Examples of ariba.util.fieldvalue.ExpressionException

                               str += " " + node.toString();
                           }
                       }
                       System.out.println(str);
                   } catch (ExprException e) {
                       throw new ExpressionException(e);
                   }
                   level++;
                   visitChildren();
                   level--;
                   return null;
View Full Code Here

Examples of com.mysema.query.types.ExpressionException

                } else {
                    return (Q)constructor.newInstance(pm);
                }               
            }
        } catch (NoSuchMethodException e) {
            throw new ExpressionException(e);
        } catch (InstantiationException e) {
            throw new ExpressionException(e);
        } catch (IllegalAccessException e) {
            throw new ExpressionException(e);
        } catch (InvocationTargetException e) {
            throw new ExpressionException(e);
        }
       
    }
View Full Code Here

Examples of com.volantis.xml.expression.ExpressionException

                functionName,
                new Function() {
                    public Value invoke(ExpressionContext context,
                                        Value[] arguments)
                            throws ExpressionException {
                        throw new ExpressionException();
                    }
                });

        // Compile and execute the function
        Expression exp = compileExpression("function:test()");
View Full Code Here

Examples of com.volantis.xml.expression.ExpressionException

public abstract class AbstractErrorFunction extends AbstractFunction {

    protected SAXParseException getException (ExpressionContext context) throws ExpressionException {
        TryModel model = (TryModel) ((SimpleExpressionContext) context).findObject(TryModel.class);
        if (model == null) {
            throw new ExpressionException("Error functions must be used inside try block.");
        }

        List exceptions = model.getExceptions();
        SAXParseException x = exceptions.isEmpty() ? null : (SAXParseException) exceptions.get(0);
        return x;   
View Full Code Here

Examples of com.volantis.xml.expression.ExpressionException

        Object result = null;

        try {
            result = compiledExpression.getValue(jxpContext);
        } catch (JXPathException e) {
            throw new ExpressionException(e);
        } catch (ExtendedRuntimeException e) {
            // JXPath does not support the propogation of checked exceptions.
            // Therefore, we use our own ExtendedRuntimeException and propogate
            // that or its cause upwards.
            Throwable cause = e.getCause();
View Full Code Here

Examples of com.volantis.xml.expression.ExpressionException

            return new JXPathExpression(
                    factory,
                    new JXPathCompiledExpression(expression, e));
        } catch (TokenMgrError tme) {
            // if parsing failed then throw an expression exception
            throw new ExpressionException(tme);
        } catch (JXPathException e) {
            // if parsing failed then throw an expression exception
            throw new ExpressionException(e);
        } catch (ParseException e) {
            LOGGER.error("exception-during-expression-parse", expression, e);
            throw new ExpressionException(e);
        }
    }
View Full Code Here

Examples of com.volantis.xml.expression.ExpressionException

            };

            streamContents(handler);

        } catch (SAXException e) {
            throw new ExpressionException(e);
        }

        return output.toString();
    }
View Full Code Here

Examples of com.volantis.xml.expression.ExpressionException

    // javadoc inherited
    public Value invoke(ExpressionContext expressionContext, Value[] values)
        throws ExpressionException {

        if (values.length != 1) {
            throw new ExpressionException(EXCEPTION_LOCALIZER.format(
                "invalid-num-of-args",
                new Object[]{
                    NAME,
                    new Integer(1),
                    new Integer(values.length)}));
View Full Code Here

Examples of com.volantis.xml.expression.ExpressionException

     */
    public Value invoke(ExpressionContext context, Value[] arguments)
            throws ExpressionException {

        if (arguments.length > 1) {
            throw new ExpressionException(
                    EXCEPTION_LOCALIZER.format(
                            "invalid-num-args-range",
                            new Object[] {
                                    getName(),
                                    new Integer(0),
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.