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 initializing the container or some other 015 * part of the PicoContainer api, for example, when a cyclic dependency between components occurs. 016 * 017 * @version $Revision$ 018 * @since 1.0 019 */ 020 public class PicoInitializationException extends PicoException { 021 /** 022 * Construct a new exception with no cause and no detail message. Note modern JVMs may still track the exception 023 * that caused this one. 024 * @deprecated Use public constructors 025 */ 026 protected PicoInitializationException() { 027 } 028 029 /** 030 * Construct a new exception with no cause and the specified detail message. Note modern JVMs may still track the 031 * exception that caused this one. 032 * 033 * @param message the message detailing the exception. 034 */ 035 public PicoInitializationException(final String message) { 036 super(message); 037 } 038 039 /** 040 * Construct a new exception with the specified cause and no detail message. 041 * 042 * @param cause the exception that caused this one. 043 */ 044 public PicoInitializationException(final Throwable cause) { 045 super(cause); 046 } 047 048 /** 049 * Construct a new exception with the specified cause and the specified detail message. 050 * 051 * @param message the message detailing the exception. 052 * @param cause the exception that caused this one. 053 */ 054 public PicoInitializationException(final String message, final Throwable cause) { 055 super(message, cause); 056 } 057 }