KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > picocontainer > PicoRegistrationException


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 registering a component with the container
15  * or another part of the PicoContainer API, for example, when a request for a component is ambiguous.
16  *
17  * @version $Revision$
18  * @since 1.0
19  */

20 public class PicoRegistrationException extends PicoException {
21
22     /**
23      * Construct a new exception with no cause and the specified detail message. Note modern JVMs may still track the
24      * exception that caused this one.
25      *
26      * @param message the message detailing the exception.
27      */

28     public PicoRegistrationException(final String JavaDoc message) {
29         super(message);
30     }
31
32     /**
33      * Construct a new exception with the specified cause and no detail message.
34      *
35      * @param cause the exception that caused this one.
36      */

37     protected PicoRegistrationException(final Throwable JavaDoc cause) {
38         super(cause);
39     }
40
41     /**
42      * Construct a new exception with the specified cause and the specified detail message.
43      *
44      * @param message the message detailing the exception.
45      * @param cause the exception that caused this one.
46      */

47     public PicoRegistrationException(String JavaDoc message, Throwable JavaDoc cause) {
48         super(message, cause);
49     }
50 }
51
Popular Tags