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   * This is a base class of runtime exeptions thrown by Turbine.
26   *
27   * This class represents a non-checked type exception (see
28   * {@link java.lang.RuntimeException}). It has the nested stack trace
29   * functionality found in the {@link TurbineException} class.
30   *
31   * @author <a href="mailto:Rafal.Krzewski@e-point.pl">Rafal Krzewski</a>
32   * @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
33   * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a>
34   */
35  public class TurbineRuntimeException extends RuntimeException
36  {
37      /** Serial version */
38      private static final long serialVersionUID = 2538372732215566444L;
39  
40      /**
41       * Constructs a new <code>TurbineRuntimeException</code> without specified
42       * detail message.
43       */
44      public TurbineRuntimeException()
45      {
46          super();
47      }
48  
49      /**
50       * Constructs a new <code>TurbineRuntimeException</code> with specified
51       * detail message.
52       *
53       * @param msg the error message.
54       */
55      public TurbineRuntimeException(String msg)
56      {
57          super(msg);
58      }
59  
60      /**
61       * Constructs a new <code>TurbineRuntimeException</code> with specified
62       * nested <code>Throwable</code>.
63       *
64       * @param nested the exception or error that caused this exception
65       *               to be thrown.
66       */
67      public TurbineRuntimeException(Throwable nested)
68      {
69          super(nested);
70      }
71  
72      /**
73       * Constructs a new <code>TurbineRuntimeException</code> with specified
74       * detail message and nested <code>Throwable</code>.
75       *
76       * @param msg the error message.
77       * @param nested the exception or error that caused this exception
78       *               to be thrown.
79       */
80      public TurbineRuntimeException(String msg, Throwable nested)
81      {
82          super(msg, nested);
83      }
84  
85  }