1 package org.apache.turbine.util;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.commons.lang.exception.NestableError;
23
24 /***
25 * Used for wrapping system errors (exceptions) that may occur in the
26 * application.
27 *
28 * @author <a href="mailto:neeme@one.lv">Neeme Praks</a>
29 * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a>
30 * @version $Id: SystemError.java 534527 2007-05-02 16:10:59Z tv $
31 */
32 public class SystemError extends NestableError
33 {
34 /*** Serial Version UID */
35 private static final long serialVersionUID = 7895965535913675097L;
36
37 /***
38 * Constructor.
39 *
40 * @param cause A Throwable object
41 */
42 public SystemError(Throwable cause)
43 {
44 super(cause);
45 }
46
47 /***
48 * Constructor.
49 *
50 * @param message Error message
51 */
52 public SystemError(String message)
53 {
54 super(message);
55 }
56
57 /***
58 * Constructor.
59 *
60 * @param cause A Throwable object
61 * @param message A String.
62 * @deprecated Use SystemError(String,Throwable) instead.
63 */
64 public SystemError(Throwable cause, String message)
65 {
66 super(message, cause);
67 }
68
69 /***
70 * Constructor.
71 *
72 * @param cause A Throwable object
73 * @param message A String.
74 */
75 public SystemError(String message, Throwable cause)
76 {
77 super(message, cause);
78 }
79
80 /***
81 * Constructor.
82 *
83 * @param cause A Throwable object
84 * @param returnCode A long.
85 * @deprecated No replacement
86 */
87 public SystemError(Throwable cause, long returnCode)
88 {
89 super("Return code = " + Long.toString(returnCode), cause);
90 }
91
92 }