|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
PicoRegistrationException.java | - | 100% | 100% | 100% |
|
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 registering a component with the container | |
15 | * or another part of the PicoContainer API, for example, when a request for a component is ambiguous. | |
16 | * | |
17 | * @version $Revision$ | |
18 | * @since 1.0 | |
19 | */ | |
20 | public class PicoRegistrationException extends PicoException { | |
21 | ||
22 | /** | |
23 | * Construct a new exception with no cause and the specified detail message. Note modern JVMs may still track the | |
24 | * exception that caused this one. | |
25 | * | |
26 | * @param message the message detailing the exception. | |
27 | */ | |
28 | 34 | public PicoRegistrationException(final String message) { |
29 | 34 | super(message); |
30 | } | |
31 | ||
32 | /** | |
33 | * Construct a new exception with the specified cause and no detail message. | |
34 | * | |
35 | * @param cause the exception that caused this one. | |
36 | */ | |
37 | 2 | protected PicoRegistrationException(final Throwable cause) { |
38 | 2 | super(cause); |
39 | } | |
40 | ||
41 | /** | |
42 | * Construct a new exception with the specified cause and the specified detail message. | |
43 | * | |
44 | * @param message the message detailing the exception. | |
45 | * @param cause the exception that caused this one. | |
46 | */ | |
47 | 2 | public PicoRegistrationException(String message, Throwable cause) { |
48 | 2 | super(message, cause); |
49 | } | |
50 | } |
|