01: /*
02: * $Id: FatalException.java 10529 2008-01-25 05:58:36Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.api.lifecycle;
12:
13: import org.mule.config.i18n.Message;
14:
15: /**
16: * <code>FatalException</code> can be thrown during initialisation or during
17: * execution to indicate that something fatal has occurred and the MuleManager must
18: * shutdown.
19: */
20: public class FatalException extends LifecycleException {
21: /**
22: * Serial version
23: */
24: private static final long serialVersionUID = -330442983239074937L;
25:
26: /**
27: * @param message the exception message
28: * @param service the object that failed during a lifecycle method call
29: */
30: public FatalException(Message message, Object component) {
31: super (message, component);
32: }
33:
34: /**
35: * @param message the exception message
36: * @param cause the exception that cause this exception to be thrown
37: * @param service the object that failed during a lifecycle method call
38: */
39: public FatalException(Message message, Throwable cause,
40: Object component) {
41: super (message, cause, component);
42: }
43:
44: /**
45: * @param cause the exception that cause this exception to be thrown
46: * @param service the object that failed during a lifecycle method call
47: */
48: public FatalException(Throwable cause, Object component) {
49: super(cause, component);
50: }
51: }
|