01: /*****************************************************************************
02: * Copyright (c) PicoContainer Organization. All rights reserved. *
03: * ------------------------------------------------------------------------- *
04: * The software in this package is published under the terms of the BSD *
05: * style license a copy of which has been included with this distribution in *
06: * the LICENSE.txt file. *
07: * *
08: * Idea by Rachel Davies, Original code by Aslak Hellesoy and Paul Hammant *
09: *****************************************************************************/package org.picocontainer;
10:
11: /**
12: * Subclass of {@link PicoException} that is thrown when there is:
13: * - a problem initializing the container
14: * - a cyclic dependency between components occurs.
15: * - problem adding a component
16: * - a request for a component that is ambiguous.
17: *
18: */
19: public class PicoCompositionException extends PicoException {
20:
21: /**
22: * Construct a new exception with no cause and the specified detail message. Note modern JVMs may still track the
23: * exception that caused this one.
24: *
25: * @param message the message detailing the exception.
26: */
27: public PicoCompositionException(final String message) {
28: super (message);
29: }
30:
31: /**
32: * Construct a new exception with the specified cause and no detail message.
33: *
34: * @param cause the exception that caused this one.
35: */
36: public PicoCompositionException(final Throwable cause) {
37: super (cause);
38: }
39:
40: /**
41: * Construct a new exception with the specified cause and the specified detail message.
42: *
43: * @param message the message detailing the exception.
44: * @param cause the exception that caused this one.
45: */
46: public PicoCompositionException(final String message,
47: final Throwable cause) {
48: super(message, cause);
49: }
50: }
|