Examples of ExpressionRuntimeException


Examples of com.googlecode.aviator.exception.ExpressionRuntimeException

*/
public class AviatorMethod extends AviatorObject {

    @Override
    public int compare(AviatorObject other, Map<String, Object> env) {
        throw new ExpressionRuntimeException("Could not compare method with " + other.desc(env));
    }
View Full Code Here

Examples of com.googlecode.aviator.exception.ExpressionRuntimeException

    public AviatorObject invoke(Map<String, Object> env, List<AviatorObject> list) {
        if (cachedFunction == null) {
            cachedFunction = (AviatorFunction) env.get(this.methodName);
        }
        if (cachedFunction == null) {
            throw new ExpressionRuntimeException("Could not find method named " + methodName);
        }
        final AviatorObject result = cachedFunction.call(env, list.toArray(new AviatorObject[list.size()]));
        return result == null ? AviatorNil.NIL : result;
    }
View Full Code Here

Examples of com.googlecode.aviator.exception.ExpressionRuntimeException

            throw new IllegalArgumentException("reduce(seq,fun,init)");
        }
        Object first = args[0].getValue(env);
        AviatorFunction fun = FunctionUtils.getFunction(1, args, env, 2);
        if (fun == null) {
            throw new ExpressionRuntimeException("There is no function named " + ((AviatorJavaType) args[1]).getName());
        }
        if (first == null) {
            throw new NullPointerException("null seq");
        }
        AviatorObject result = args[2];
View Full Code Here

Examples of com.googlecode.aviator.exception.ExpressionRuntimeException

            throw new IllegalArgumentException("map(seq,fun)");
        }
        Object first = args[0].getValue(env);
        AviatorFunction fun = FunctionUtils.getFunction(1, args, env, 1);
        if (fun == null) {
            throw new ExpressionRuntimeException("There is no function named " + ((AviatorJavaType) args[1]).getName());
        }
        if (first == null) {
            throw new NullPointerException("null seq");
        }
        Class<?> clazz = first.getClass();
View Full Code Here

Examples of org.mule.api.expression.ExpressionRuntimeException

        {
            namespaceManager = muleContext.getRegistry().lookupObject(NamespaceManager.class);
        }
        catch (RegistrationException e)
        {
            throw new ExpressionRuntimeException(CoreMessages.failedToLoad("NamespaceManager"), e);
        }
        if(namespaceManager!=null)
        {
            if(namespaces == null)
            {
View Full Code Here

Examples of org.mule.api.expression.ExpressionRuntimeException

        {
            namespaceManager = muleContext.getRegistry().lookupObject(NamespaceManager.class);
        }
        catch (RegistrationException e)
        {
            throw new ExpressionRuntimeException(CoreMessages.failedToLoad("NamespaceManager"), e);
        }

        if (namespaceManager != null)
        {
            if (namespaces == null)
View Full Code Here

Examples of org.mule.api.expression.ExpressionRuntimeException

            {
                namespaceManager = muleContext.getRegistry().lookupObject(NamespaceManager.class);
            }
            catch (RegistrationException e)
            {
                throw new ExpressionRuntimeException(CoreMessages.failedToLoad("NamespaceManager"), e);
            }

            if (namespaceManager != null)
            {
                if (prefixToNamespaceMap == null)
View Full Code Here

Examples of org.mule.api.expression.ExpressionRuntimeException

            {
                context.registerNamespace(entry.getKey().toString(), entry.getValue().toString());
            }
            catch (Exception e)
            {
                throw new ExpressionRuntimeException(XmlMessages.failedToRegisterNamespace(entry.getKey().toString(), entry.getValue().toString()));
            }
        }
    }
View Full Code Here

Examples of org.mule.api.expression.ExpressionRuntimeException

                    namespaceManager = muleContext.getRegistry().lookupObject(NamespaceManager.class);
                }
            }
            catch (RegistrationException e)
            {
                throw new ExpressionRuntimeException(CoreMessages.failedToLoad("NamespaceManager"), e);
            }
        }
        return namespaceManager;
    }
View Full Code Here

Examples of org.mule.api.expression.ExpressionRuntimeException

        {
            builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
        }
        catch (ParserConfigurationException e)
        {
            throw new ExpressionRuntimeException(XmlMessages.failedToCreateDocumentBuilder(), 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.