001    /*****************************************************************************
002     * Copyright (C) PicoContainer 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                                                          *
009     *****************************************************************************/
010    package org.picocontainer;
011    
012    /**
013     * Subclass of {@link PicoException} that is thrown when there is a problem creating, providing or locating a component
014     * instance or a part of the PicoContainer API, for example, when a request for a component is ambiguous.
015     * 
016     * @author Paul Hammant
017     * @author Aslak Hellesøy
018     * @version $Revision: 1.3 $
019     * @since 1.0
020     */
021    public class PicoIntrospectionException extends PicoException {
022    
023        /**
024         * Construct a new exception with no cause and the specified detail message.  Note modern JVMs may still track the
025         * exception that caused this one. 
026         * 
027         * @param message the message detailing the exception.
028         */ 
029        public PicoIntrospectionException(final String message) {
030            super(message);
031        }
032    
033        /**
034         * Construct a new exception with the specified cause and no detail message.
035         *
036         * @param cause the exception that caused this one.
037         */
038        protected PicoIntrospectionException(final Throwable cause) {
039            super(cause);
040        }
041    
042        /**
043         * Construct a new exception with the specified cause and the specified detail message.
044         * 
045         * @param message the message detailing the exception. 
046         * @param cause the exception that caused this one.
047         */ 
048        public PicoIntrospectionException(final String message, final Throwable cause) {
049            super(message,cause);
050        }
051    }