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