View Javadoc

1   package org.apache.turbine.util;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
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  }