Package com.github.overengineer.scope.conversation.expression.exceptions

Examples of com.github.overengineer.scope.conversation.expression.exceptions.ExpressionEvaluationException


                this.templateCache.put(expression, template);
            }
            evaluationContext.put("action", root);
            return template.make(evaluationContext).toString();
        } catch (Exception e) {
            throw new ExpressionEvaluationException(expression, e);
        }
    }
View Full Code Here


    @Override
    public Object evaluate(String expression) throws ExpressionEvaluationException {
        try {
            return this.evaluate(expression, ConversationAdapter.getAdapter().getActionContext(), ConversationAdapter.getAdapter().getAction());
        } catch (Exception e) {
            throw new ExpressionEvaluationException(expression, e);
        }
    }
View Full Code Here

                template = compiler.compile();
                this.templateCache.put(expression, template);
            }
            return MVEL.executeExpression(template, root, evaluationContext);
        } catch (Exception e) {
            throw new ExpressionEvaluationException(expression, e);
        }
    }
View Full Code Here

    @Override
    public Object evaluate(String expression) throws ExpressionEvaluationException {
        try {
            return this.evaluate(expression, ConversationAdapter.getAdapter().getActionContext(), ConversationAdapter.getAdapter().getAction());
        } catch (Exception e) {
            throw new ExpressionEvaluationException(expression, e);
        }
    }
View Full Code Here

            context.registerFunction("cBeg", CONVERSATION_INITIATOR);
            context.registerFunction("cEnd", CONVERSATION_TERMINATOR);
            context.registerFunction("cCon", CONVERSATION_CONTINUATOR);
            return parsedExpression.getValue(context);
        } catch (Exception e) {
            throw new ExpressionEvaluationException(expression, e);
        }
    }
View Full Code Here

     */
    public Object evaluate(String expression) throws ExpressionEvaluationException {
        try {
            return this.evaluate(expression, ConversationAdapter.getAdapter().getActionContext(), ConversationAdapter.getAdapter().getAction());
        } catch (Exception e) {
            throw new ExpressionEvaluationException(expression, e);
        }
    }
View Full Code Here

                    LOG.error("Failed to evaluate expression [" + expression + "].  Message:  " + e.getMessage());
                }
            }
        } catch (OgnlException e) {
            LOG.error("Failed to obtain compiled object graph for [" + expression + "].  Message:  " + e.getMessage() + "  Details:  " + e.getReason());
            throw new ExpressionEvaluationException(expression, e);
        } catch (Exception e) {
            throw new ExpressionEvaluationException(expression, e);
        }

        return result;
    }
View Full Code Here

TOP

Related Classes of com.github.overengineer.scope.conversation.expression.exceptions.ExpressionEvaluationException

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.