01: /*
02: * $Id: InitialisationException.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>InitialisationException</code> is thrown by the initialise method defined
17: * in the <code>org.mule.api.lifecycle.Initialisable</code> interface.
18: * IinitialisationExceptions are fatal and will cause the current Mule instance to
19: * shutdown.
20: */
21: public class InitialisationException extends LifecycleException {
22: /** Serial version */
23: private static final long serialVersionUID = -8402348927606781931L;
24:
25: /**
26: * @param message the exception message
27: * @param service the object that failed during a lifecycle method call
28: */
29: public InitialisationException(Message message,
30: Initialisable 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 InitialisationException(Message message, Throwable cause,
40: Initialisable 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 InitialisationException(Throwable cause,
49: Initialisable component) {
50: super(cause, component);
51: }
52: }
|