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