1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package org.strutsit.chain;
25
26 /***
27 * An exception type for the chain-conf framework. The whole framework should
28 * only throw this exception.
29 *
30 * @author <a href="mailto:wolff@struts-it.de">Manfred Wolff </a>
31 * @since JDK 1.4
32 * @version $Revision: 1.3 $
33 */
34 public class ChainException extends Exception {
35
36 /***
37 * Constructs a new exception with null as its detail message.
38 */
39 public ChainException() {
40 super();
41 }
42
43 /***
44 * Constructs a new exception with the specified detail message.
45 *
46 * @param message
47 * Message of this exception.
48 */
49 public ChainException(String message) {
50 super(message);
51 }
52
53 /***
54 * Constructs a new exception with the specified detail message and cause.
55 *
56 * @param message
57 * Message of this exception.
58 * @param cause
59 * cause of this exception
60 */
61 public ChainException(String message, Throwable cause) {
62 super(message, cause);
63 }
64
65 /***
66 * Constructs a new exception with the specified cause and a detail message
67 * of (cause==null ? null : cause.toString()) (which typically contains the
68 * class and detail message of cause).
69 *
70 * @param cause
71 * The cause of this exception.
72 */
73 public ChainException(Throwable cause) {
74 super(cause);
75 }
76 }