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.api.lifecycle;
8   
9   import org.mule.config.i18n.Message;
10  
11  /**
12   * <code>InitialisationException</code> is thrown by the initialise method defined
13   * in the <code>org.mule.api.lifecycle.Initialisable</code> interface.
14   * IinitialisationExceptions are fatal and will cause the current Mule instance to
15   * shutdown.
16   */
17  public class InitialisationException extends LifecycleException
18  {
19      /** Serial version */
20      private static final long serialVersionUID = -8402348927606781931L;
21  
22      /**
23       * @param message   the exception message
24       * @param component the object that failed during a lifecycle method call
25       */
26      public InitialisationException(Message message, Initialisable component)
27      {
28          super(message, component);
29      }
30  
31      /**
32       * @param message   the exception message
33       * @param cause     the exception that cause this exception to be thrown
34       * @param component the object that failed during a lifecycle method call
35       */
36      public InitialisationException(Message message, Throwable cause, Initialisable component)
37      {
38          super(message, cause, component);
39      }
40  
41      /**
42       * @param cause     the exception that cause this exception to be thrown
43       * @param component the object that failed during a lifecycle method call
44       */
45      public InitialisationException(Throwable cause, Initialisable component)
46      {
47          super(cause, component);
48      }
49  }