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.NestableRuntimeException;
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   * @version $Id: TurbineRuntimeException.java 534527 2007-05-02 16:10:59Z tv $
35   */
36  public class TurbineRuntimeException extends NestableRuntimeException
37  {
38      /*** Serial Version UID */
39      private static final long serialVersionUID = 4748124104580250109L;
40  
41      /***
42       * Constructs a new <code>TurbineRuntimeException</code> without specified
43       * detail message.
44       */
45      public TurbineRuntimeException()
46      {
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  }