|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
PicoInitializationException.java | - | 100% | 75% | 85.7% |
|
1 | /***************************************************************************** | |
2 | * Copyright (c) PicoContainer 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 | * Idea by Rachel Davies, Original code by Aslak Hellesoy and Paul Hammant * | |
9 | *****************************************************************************/ | |
10 | ||
11 | package org.picocontainer; | |
12 | ||
13 | /** | |
14 | * Subclass of {@link PicoException} that is thrown when there is a problem initializing the container or some other | |
15 | * part of the PicoContainer api, for example, when a cyclic dependency between components occurs. | |
16 | * | |
17 | * @version $Revision$ | |
18 | * @since 1.0 | |
19 | */ | |
20 | public class PicoInitializationException extends PicoException { | |
21 | /** | |
22 | * Construct a new exception with no cause and no detail message. Note modern JVMs may still track the exception | |
23 | * that caused this one. | |
24 | */ | |
25 | 0 | protected PicoInitializationException() { |
26 | } | |
27 | ||
28 | /** | |
29 | * Construct a new exception with no cause and the specified detail message. Note modern JVMs may still track the | |
30 | * exception that caused this one. | |
31 | * | |
32 | * @param message the message detailing the exception. | |
33 | */ | |
34 | 4 | public PicoInitializationException(final String message) { |
35 | 4 | super(message); |
36 | } | |
37 | ||
38 | /** | |
39 | * Construct a new exception with the specified cause and no detail message. | |
40 | * | |
41 | * @param cause the exception that caused this one. | |
42 | */ | |
43 | 2 | public PicoInitializationException(final Throwable cause) { |
44 | 2 | super(cause); |
45 | } | |
46 | ||
47 | /** | |
48 | * Construct a new exception with the specified cause and the specified detail message. | |
49 | * | |
50 | * @param message the message detailing the exception. | |
51 | * @param cause the exception that caused this one. | |
52 | */ | |
53 | 14 | public PicoInitializationException(final String message, final Throwable cause) { |
54 | 14 | super(message, cause); |
55 | } | |
56 | } |
|