KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > turbine > util > SystemError


1 package org.apache.turbine.util;
2
3 /*
4  * Copyright 2001-2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License")
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
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 JavaDoc cause)
37     {
38         super(cause);
39     }
40
41     /**
42      * Constructor.
43      *
44      * @param message Error message
45      */

46     public SystemError(String JavaDoc 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 JavaDoc cause, String JavaDoc 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 JavaDoc message, Throwable JavaDoc 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 JavaDoc cause, long returnCode)
82     {
83         super("Return code = " + Long.toString(returnCode), cause);
84     }
85
86 }
87
Popular Tags