01: /*****************************************************************************
02: * Copyright (C) PicoContainer Organization. All rights reserved. *
03: * ------------------------------------------------------------------------- *
04: * The software in this package is published under the terms of the BSD *
05: * style license a copy of which has been included with this distribution in *
06: * the LICENSE.txt file. *
07: * *
08: * Original code by *
09: *****************************************************************************/package org.picocontainer;
10:
11: import java.io.PrintStream;
12: import java.io.PrintWriter;
13:
14: /**
15: * Superclass for all Exceptions in PicoContainer. You can use this if you want to catch all exceptions thrown by
16: * PicoContainer. Be aware that some parts of the PicoContainer API will also throw {@link NullPointerException} when
17: * <code>null</code> values are provided for method arguments, and this is not allowed.
18: *
19: * @author Paul Hammant
20: * @author Aslak Hellesøy
21: */
22: public abstract class PicoException extends RuntimeException {
23:
24: /**
25: * Construct a new exception with no cause and no detail message. Note modern JVMs may still track the exception
26: * that caused this one.
27: */
28: protected PicoException() {
29: }
30:
31: /**
32: * Construct a new exception with no cause and the specified detail message. Note modern JVMs may still track the
33: * exception that caused this one.
34: *
35: * @param message the message detailing the exception.
36: */
37: protected PicoException(final String message) {
38: super (message);
39: }
40:
41: /**
42: * Construct a new exception with the specified cause and no detail message.
43: *
44: * @param cause the exception that caused this one.
45: */
46: protected PicoException(final Throwable cause) {
47: super (cause);
48: }
49:
50: /**
51: * Construct a new exception with the specified cause and the specified detail message.
52: *
53: * @param message the message detailing the exception.
54: * @param cause the exception that caused this one.
55: */
56: protected PicoException(final String message, final Throwable cause) {
57: super(message, cause);
58: }
59:
60: }
|