View Javadoc

1   package org.apache.turbine.util;
2   
3   /*
4    * Copyright 2001-2005 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 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  }