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