Examples of NoSuchFunctionException


Examples of cn.wanghaomiao.xpath.exception.NoSuchFunctionException

    public Object callFunc(String funcname,Elements context) throws NoSuchFunctionException {
        try {
            Method function = Functions.class.getMethod(funcname,Elements.class);
            return function.invoke(SingletonProducer.getInstance().getFunctions(),context);
        } catch (NoSuchMethodException e) {
            throw new NoSuchFunctionException("This function is not supported");
        } catch (Exception e1) {
            throw new NoSuchFunctionException(e1.getMessage());
        }
    }
View Full Code Here

Examples of cn.wanghaomiao.xpath.exception.NoSuchFunctionException

    public Object callFilterFunc(String funcname,Element el) throws NoSuchFunctionException {
        try {
            Method function = Functions.class.getMethod(funcname,Element.class);
            return function.invoke(SingletonProducer.getInstance().getFunctions(),el);
        } catch (NoSuchMethodException e) {
            throw new NoSuchFunctionException("This function is not supported");
        } catch (Exception et) {
            throw new NoSuchFunctionException(et.getMessage());
        }
    }
View Full Code Here

Examples of cn.wanghaomiao.xpath.exception.NoSuchFunctionException

    public Object callFunc(String funcname,Elements context) throws NoSuchFunctionException {
        try {
            Method function = Functions.class.getMethod(funcname,Elements.class);
            return function.invoke(SingletonProducer.getInstance().getFunctions(),context);
        } catch (NoSuchMethodException e) {
            throw new NoSuchFunctionException("This function is not supported");
        } catch (Exception e1) {
            throw new NoSuchFunctionException(e1.getMessage());
        }
    }
View Full Code Here

Examples of cn.wanghaomiao.xpath.exception.NoSuchFunctionException

    public Object callFilterFunc(String funcname,Element el) throws NoSuchFunctionException {
        try {
            Method function = Functions.class.getMethod(funcname,Element.class);
            return function.invoke(SingletonProducer.getInstance().getFunctions(),el);
        } catch (NoSuchMethodException e) {
            throw new NoSuchFunctionException("This function is not supported");
        } catch (Exception et) {
            throw new NoSuchFunctionException(et.getMessage());
        }
    }
View Full Code Here

Examples of com.consol.citrus.exceptions.NoSuchFunctionException

     * @return the function instance.
     * @throws NoSuchFunctionException
     */
    public Function getFunction(String functionName) throws NoSuchFunctionException {
        if (!members.containsKey(functionName)) {
            throw new NoSuchFunctionException("Can not find function " + functionName + " in library " + name + " (" + prefix + ")");
        }

        return members.get(functionName);
    }
View Full Code Here

Examples of com.consol.citrus.exceptions.NoSuchFunctionException

                    curIndex++;
                }

                final String value = resolveFunction(variableNameBuf.toString(), context);
                if (value == null) {
                    throw new NoSuchFunctionException("Function: " +
                            VariableUtils.cutOffVariablesPrefix(variableNameBuf.toString()) + " could not be found");
                }

                strBuffer.append(newString.substring(startIndex, searchIndex));
View Full Code Here

Examples of com.foundationdb.server.error.NoSuchFunctionException

                (methodCall.getProcedureName().hasSchema())) {
                // Qualified name is always a routine and an immediate error if not.
                routine = ais.getRoutine(methodCall.getProcedureName().getSchemaName(),
                                         methodCall.getProcedureName().getTableName());
                if ((routine == null) || !context.isAccessible(routine.getName())) {
                    throw new NoSuchFunctionException(methodCall.getProcedureName().toString());
                }
            }
            else if (!functionDefined.isDefined(methodCall.getMethodName())) {
                // Unqualified only if not a built-in function and error deferred.
                routine = ais.getRoutine(defaultSchemaName, methodCall.getMethodName());
View Full Code Here

Examples of com.foundationdb.server.error.NoSuchFunctionException

    public OverloadResult<V> get(String name, List<? extends TPreptimeValue> inputs)
    {
        Iterable<? extends ScalarsGroup<V>> scalarsGroup = overloadsRegistry.get(name);
        if (scalarsGroup == null) {
            throw new NoSuchFunctionException(name);
        }
        return inputBasedResolution(name, inputs, scalarsGroup);
    }
View Full Code Here

Examples of org.apache.tajo.catalog.exception.NoSuchFunctionException

        LOG.error(e.getMessage(), e);
      }
    }

    if (descProto == null) {
      throw new NoSuchFunctionException(signature, paramTypes);
    }

    try {
      return new FunctionDesc(descProto);
    } catch (ClassNotFoundException e) {
      LOG.error(e);
      throw new NoSuchFunctionException(signature, paramTypes);
    }
  }
View Full Code Here

Examples of org.apache.tajo.catalog.exception.NoSuchFunctionException

    }

    stack.pop(); // <--- Pop

    if (!catalog.containFunction(expr.getSignature(), paramTypes)) {
      throw new NoSuchFunctionException(expr.getSignature(), paramTypes);
    }

    FunctionDesc funcDesc = catalog.getFunction(expr.getSignature(), paramTypes);

    try {
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.