Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.WrongExpressionArityException


        if (queryParams != null) {
            for (Map.Entry<String,List<String>> entry : queryParams.entrySet()) {
                if (jsonpArgName.equals(entry.getKey()))
                    continue;
                if (entry.getValue().size() != 1)
                    throw new WrongExpressionArityException(1, entry.getValue().size());
                call.setString(entry.getKey(), entry.getValue().get(0));
            }
        }
        if (jsonParams != null) {
            JsonNode parsed;
View Full Code Here


        List<String> params = new ArrayList<>();
        boolean first = true;
       
        for (Map.Entry<String,List<String>> entry : uri.getQueryParameters().entrySet()) {
            if (entry.getValue().size() != 1)
                throw new WrongExpressionArityException(1, entry.getValue().size());
            if (ResourceHelper.JSONP_ARG_NAME.equals(entry.getKey()))
                continue;
            if (first) {
                query.append(" WHERE ");
                first = false;
View Full Code Here

                    return new FunctionCondition(methodCall.getMethodName(),
                                                 operands,
                            sqlType, valueNode, type);
                else if (AggregateFunctionExpression.class.getName().equals(methodCall.getJavaClassName())) {
                    if (operands.size() != 1)
                        throw new WrongExpressionArityException(2, operands.size());
                    return new AggregateFunctionExpression(methodCall.getMethodName(),
                                                           operands.get(0), false,
                            sqlType, valueNode, type,
                                                           null,  // *supposed* separator
                                                           null); // order by list
View Full Code Here

                             TInstance type) {
        super(sqlType, sqlSource, type);
        this.routine = routine;
        this.operands = operands;
        if (routine.getParameters().size() != operands.size())
            throw new WrongExpressionArityException(routine.getParameters().size(),
                                                    operands.size());
    }
View Full Code Here

        }
        if (mostSpecific == null) {
            // no priority group had any candidates; this is an error
            if (sawRightArity)
                throw overloadException(name, inputs);
            throw new WrongExpressionArityException(aritySeen, inputs.size());
        }
        return buildResult(mostSpecific, inputs);
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.WrongExpressionArityException

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.