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,v 1.4.2.2 2004/05/20 03:16:38 seade Exp $
28 */
29 public class SystemError extends NestableError
30 {
31 /***
32 * Constructor.
33 *
34 * @param cause A Throwable object
35 */
36 public SystemError(Throwable cause)
37 {
38 super(cause);
39 }
40
41 /***
42 * Constructor.
43 *
44 * @param message Error message
45 */
46 public SystemError(String message)
47 {
48 super(message);
49 }
50
51 /***
52 * Constructor.
53 *
54 * @param cause A Throwable object
55 * @param message A String.
56 * @deprecated Use SystemError(String,Throwable) instead.
57 */
58 public SystemError(Throwable cause, String message)
59 {
60 super(message, cause);
61 }
62
63 /***
64 * Constructor.
65 *
66 * @param cause A Throwable object
67 * @param message A String.
68 */
69 public SystemError(String message, Throwable cause)
70 {
71 super(message, cause);
72 }
73
74 /***
75 * Constructor.
76 *
77 * @param cause A Throwable object
78 * @param returnCode A long.
79 * @deprecated No replacement
80 */
81 public SystemError(Throwable cause, long returnCode)
82 {
83 super("Return code = " + Long.toString(returnCode), cause);
84 }
85
86 }