1 /*
2 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
3 * The software in this package is published under the terms of the CPAL v1.0
4 * license, a copy of which has been included with this distribution in the
5 * LICENSE.txt file.
6 */
7 package org.mule.api.expression;
8
9 import org.mule.config.i18n.CoreMessages;
10
11 /**
12 * Is thrown explicitly when an expression is Malformed or invalid. Malformed means the syntax is not correct, but an
13 * expression can be invalid if it refers to an expression namespace or function that does not exist
14 */
15 public class InvalidExpressionException extends ExpressionRuntimeException
16 {
17 public InvalidExpressionException(String expression, String message)
18 {
19 super(CoreMessages.createStaticMessage(message + ". Offending expression string is: " + expression));
20 }
21 }