KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > picocontainer > gems > adapters > PoolException


1 /*****************************************************************************
2  * Copyright (C) NanoContainer 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  * Original code by Aslak Hellesoy & Joerg Schaible *
9  *****************************************************************************/

10 package org.picocontainer.gems.adapters;
11
12 import org.picocontainer.PicoIntrospectionException;
13
14
15 /**
16  * Exception thrown from the PoolingComponentAdapter. Only thrown if the interaction with the internal pool fails.
17  *
18  * @author Jörg Schaible
19  * @since 1.2
20  */

21 public class PoolException extends PicoIntrospectionException {
22
23     private static final long serialVersionUID = 1L;
24
25     /**
26      * Construct a PoolException with an explaining message and a originalting cause.
27      *
28      * @param message the explaining message
29      * @param cause the originating cause
30      * @since 1.2
31      */

32     public PoolException(String JavaDoc message, Throwable JavaDoc cause) {
33         super(message, cause);
34     }
35
36     /**
37      * Construct a PoolException with an explaining message.
38      *
39      * @param message the explaining message
40      * @since 1.2
41      */

42     public PoolException(String JavaDoc message) {
43         super(message);
44     }
45
46 }
47
Popular Tags