Package com.volantis.xml.expression

Examples of com.volantis.xml.expression.ExpressionException


        throws ExpressionException {
        // We need at least 1 parameter
        if ((values == null) || (values.length < 1)) {
            logger.error("invalid-getInstance-call", new Object[] {namespace.getName()});

            throw new ExpressionException(
                    "Call to get" +  namespace.getName() + "Instance with no " +
                    "arguments.");
        }

        // Extract the mariner request context from the expression context and
View Full Code Here


        }

        if (formatIndex == -1) {
            logger.error("invalid-format-index", new Object[]{value.stringValue().asJavaString()});

            throw new ExpressionException(value.stringValue().asJavaString() +
                    " is not a valid format index.");
        }

        return formatIndex;
    }
View Full Code Here

        if ((values != null) && (values.length > 0)) {
            // Ensure that the name is always in string form
            name = values[0].stringValue().asJavaString();
        } else {
            throw new ExpressionException(
                getFunctionName() + " must be invoked with at least one name" +
                "value (and optionally with a default value)");
        }

        if (values.length > 1) {
View Full Code Here

     * {@inheritDoc}
     */
    public Value invoke(ExpressionContext context, Value[] arguments)
            throws ExpressionException {
        if (arguments.length != 2) {
            throw new ExpressionException(
                    EXCEPTION_LOCALIZER.format(
                            "invalid-num-args",
                            new Object[] {
                                    NAME,
                                    new Integer(2),
View Full Code Here

     * {@inheritDoc}
     */
    public Value invoke(ExpressionContext context, Value[] arguments)
            throws ExpressionException {
        if (arguments.length != 2) {
            throw new ExpressionException(
                    EXCEPTION_LOCALIZER.format(
                            "invalid-num-args",
                            new Object[] {
                                    NAME,
                                    new Integer(2),
View Full Code Here

     * {@inheritDoc}
     */
    public Value invoke(ExpressionContext context, Value[] arguments)
            throws ExpressionException {
        if (arguments.length != 2) {
            throw new ExpressionException(
                    EXCEPTION_LOCALIZER.format(
                            "invalid-num-args",
                            new Object[] {
                                    NAME,
                                    new Integer(2),
View Full Code Here

TOP

Related Classes of com.volantis.xml.expression.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.