001 /***************************************************************************** 002 * Copyright (C) NanoContainer Organization. All rights reserved. * 003 * ------------------------------------------------------------------------- * 004 * The software in this package is published under the terms of the BSD * 005 * style license a copy of which has been included with this distribution in * 006 * the LICENSE.txt file. * 007 * * 008 * Original code by Aslak Hellesoy & Joerg Schaible * 009 *****************************************************************************/ 010 package org.picocontainer.gems.adapters; 011 012 import org.picocontainer.PicoIntrospectionException; 013 014 015 /** 016 * Exception thrown from the PoolingComponentAdapter. Only thrown if the interaction with the internal pool fails. 017 * 018 * @author Jörg Schaible 019 * @since 1.2 020 */ 021 public class PoolException extends PicoIntrospectionException { 022 023 private static final long serialVersionUID = 1L; 024 025 /** 026 * Construct a PoolException with an explaining message and a originalting cause. 027 * 028 * @param message the explaining message 029 * @param cause the originating cause 030 * @since 1.2 031 */ 032 public PoolException(String message, Throwable cause) { 033 super(message, cause); 034 } 035 036 /** 037 * Construct a PoolException with an explaining message. 038 * 039 * @param message the explaining message 040 * @since 1.2 041 */ 042 public PoolException(String message) { 043 super(message); 044 } 045 046 }