KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > picocontainer > PicoInitializationException


1 /*****************************************************************************
2  * Copyright (c) PicoContainer Organization. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  * *
8  * Idea by Rachel Davies, Original code by Aslak Hellesoy and Paul Hammant *
9  *****************************************************************************/

10
11 package org.picocontainer;
12
13 /**
14  * Subclass of {@link PicoException} that is thrown when there is a problem initializing the container or some other
15  * part of the PicoContainer api, for example, when a cyclic dependency between components occurs.
16  *
17  * @version $Revision$
18  * @since 1.0
19  */

20 public class PicoInitializationException extends PicoException {
21     /**
22      * Construct a new exception with no cause and no detail message. Note modern JVMs may still track the exception
23      * that caused this one.
24      */

25     protected PicoInitializationException() {
26     }
27
28     /**
29      * Construct a new exception with no cause and the specified detail message. Note modern JVMs may still track the
30      * exception that caused this one.
31      *
32      * @param message the message detailing the exception.
33      */

34     public PicoInitializationException(final String JavaDoc message) {
35         super(message);
36     }
37
38     /**
39      * Construct a new exception with the specified cause and no detail message.
40      *
41      * @param cause the exception that caused this one.
42      */

43     public PicoInitializationException(final Throwable JavaDoc cause) {
44         super(cause);
45     }
46
47     /**
48      * Construct a new exception with the specified cause and the specified detail message.
49      *
50      * @param message the message detailing the exception.
51      * @param cause the exception that caused this one.
52      */

53     public PicoInitializationException(final String JavaDoc message, final Throwable JavaDoc cause) {
54         super(message, cause);
55     }
56 }
57
Popular Tags