View Javadoc

1   /*
2    * $Id: RecoverableException.java 19191 2010-08-25 21:05:23Z tcarlson $
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  
11  package org.mule.api.lifecycle;
12  
13  import org.mule.config.i18n.Message;
14  
15  /**
16   * <code>RecoverableException</code> can be thrown during initialisation to
17   * indicate that the error occurred is not fatal and a reactive action can be
18   * performed to try and remedy the error. The most common example would be a
19   * Connector failing to connect due to a JVM_BIND exception.
20   */
21  public class RecoverableException extends InitialisationException
22  {
23  
24      /** Serial version */
25      private static final long serialVersionUID = -5799024626172482665L;
26  
27      /** @param message the exception message */
28      public RecoverableException(Message message, Initialisable object)
29      {
30          super(message, object);
31      }
32  
33      /**
34       * @param message the exception message
35       * @param cause   the exception that cause this exception to be thrown
36       */
37      public RecoverableException(Message message, Initialisable object, Throwable cause)
38      {
39          super(message, cause, object);
40      }
41  
42  }