01: package org.apache.turbine.util;
02:
03: /*
04: * Licensed to the Apache Software Foundation (ASF) under one
05: * or more contributor license agreements. See the NOTICE file
06: * distributed with this work for additional information
07: * regarding copyright ownership. The ASF licenses this file
08: * to you under the Apache License, Version 2.0 (the
09: * "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: /** Serial Version UID */
38: private static final long serialVersionUID = 4748124104580250109L;
39:
40: /**
41: * Constructs a new <code>TurbineRuntimeException</code> without specified
42: * detail message.
43: */
44: public TurbineRuntimeException() {
45: }
46:
47: /**
48: * Constructs a new <code>TurbineRuntimeException</code> with specified
49: * detail message.
50: *
51: * @param msg the error message.
52: */
53: public TurbineRuntimeException(String msg) {
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: super (nested);
66: }
67:
68: /**
69: * Constructs a new <code>TurbineRuntimeException</code> with specified
70: * detail message and nested <code>Throwable</code>.
71: *
72: * @param msg the error message.
73: * @param nested the exception or error that caused this exception
74: * to be thrown.
75: */
76: public TurbineRuntimeException(String msg, Throwable nested) {
77: super(msg, nested);
78: }
79:
80: }
|