View Javadoc
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.example.errorhandler;
8   
9   import org.mule.api.MuleException;
10  import org.mule.config.i18n.MessageFactory;
11  
12  public class HandlerException extends MuleException
13  {
14  
15      /**
16       * Serial version
17       */
18      private static final long serialVersionUID = -1446892313657626797L;
19  
20      public HandlerException(String message)
21      {
22          super(MessageFactory.createStaticMessage(message));
23      }
24  
25      public HandlerException(String message, Throwable cause)
26      {
27          super(MessageFactory.createStaticMessage(message), cause);
28      }
29  
30  }