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>FatalException</code> can be thrown during initialisation or during
13   * execution to indicate that something fatal has occurred and the MuleManager must
14   * shutdown.
15   */
16  public class FatalException extends LifecycleException
17  {
18      /**
19       * Serial version
20       */
21      private static final long serialVersionUID = -330442983239074937L;
22  
23      /**
24       * @param message the exception message
25       * @param component the object that failed during a lifecycle method call
26       */
27      public FatalException(Message message, Object component)
28      {
29          super(message, component);
30      }
31  
32      /**
33       * @param message the exception message
34       * @param cause the exception that cause this exception to be thrown
35       * @param component the object that failed during a lifecycle method call
36       */
37      public FatalException(Message message, Throwable cause, Object component)
38      {
39          super(message, cause, component);
40      }
41  
42      /**
43       * @param cause the exception that cause this exception to be thrown
44       * @param component the object that failed during a lifecycle method call
45       */
46      public FatalException(Throwable cause, Object component)
47      {
48          super(cause, component);
49      }
50  }