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.api.MuleRuntimeException; 10 import org.mule.config.i18n.Message; 11 12 /** 13 * If thrown by the {@link org.mule.expression.DefaultExpressionManager} if an expression returns null 14 * and failIfNull was set when {@link ExpressionManager#evaluate(String,org.mule.api.MuleMessage,boolean)} 15 * was called. 16 */ 17 public class ExpressionRuntimeException extends MuleRuntimeException 18 { 19 /** 20 * @param message the exception message 21 */ 22 public ExpressionRuntimeException(Message message) 23 { 24 super(message); 25 } 26 27 /** 28 * @param message the exception message 29 * @param cause the exception that triggered this exception 30 */ 31 public ExpressionRuntimeException(Message message, Throwable cause) 32 { 33 super(message, cause); 34 } 35 }