View Javadoc

1   /*
2    * $Id: ExpressionRuntimeException.java 20321 2010-11-24 15:21:24Z dfeist $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  package org.mule.api.expression;
11  
12  import org.mule.api.MuleRuntimeException;
13  import org.mule.config.i18n.Message;
14  
15  /**
16   * If thrown by the {@link org.mule.expression.DefaultExpressionManager} if an expression returns null
17   * and failIfNull was set when {@link ExpressionManager#evaluate(String,org.mule.api.MuleMessage,boolean)}
18   * was called.
19   */
20  public class ExpressionRuntimeException extends MuleRuntimeException
21  {
22      /**
23       * @param message the exception message
24       */
25      public ExpressionRuntimeException(Message message)
26      {
27          super(message);
28      }
29  
30      /**
31       * @param message the exception message
32       * @param cause   the exception that triggered this exception
33       */
34      public ExpressionRuntimeException(Message message, Throwable cause)
35      {
36          super(message, cause);
37      }
38  }