View Javadoc
1   package org.apache.turbine.util;
2   
3   
4   /*
5    * Licensed to the Apache Software Foundation (ASF) under one
6    * or more contributor license agreements.  See the NOTICE file
7    * distributed with this work for additional information
8    * regarding copyright ownership.  The ASF licenses this file
9    * to you under the Apache License, Version 2.0 (the
10   * "License"); you may not use this file except in compliance
11   * with the License.  You may obtain a copy of the License at
12   *
13   *   http://www.apache.org/licenses/LICENSE-2.0
14   *
15   * Unless required by applicable law or agreed to in writing,
16   * software distributed under the License is distributed on an
17   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18   * KIND, either express or implied.  See the License for the
19   * specific language governing permissions and limitations
20   * under the License.
21   */
22  
23  
24  
25  /**
26   * Used for wrapping system errors (exceptions) that may occur in the
27   * application.
28   *
29   * @author <a href="mailto:neeme@one.lv">Neeme Praks</a>
30   * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a>
31   * @version $Id$
32   */
33  public class SystemError extends Error
34  {
35      /** Serial version */
36  	private static final long serialVersionUID = -8965344546132616128L;
37  
38  	/**
39       * Constructor.
40       *
41       * @param cause A Throwable object
42       */
43      public SystemError(Throwable cause)
44      {
45          super(cause);
46      }
47  
48      /**
49       * Constructor.
50       *
51       * @param message Error message
52       */
53      public SystemError(String message)
54      {
55          super(message);
56      }
57  
58      /**
59       * Constructor.
60       *
61       * @param cause A Throwable object
62       * @param message A String.
63       */
64      public SystemError(String message, Throwable cause)
65      {
66          super(message, cause);
67      }
68  }