001 package org.apache.turbine.util;
002
003
004 /*
005 * Licensed to the Apache Software Foundation (ASF) under one
006 * or more contributor license agreements. See the NOTICE file
007 * distributed with this work for additional information
008 * regarding copyright ownership. The ASF licenses this file
009 * to you under the Apache License, Version 2.0 (the
010 * "License"); you may not use this file except in compliance
011 * with the License. You may obtain a copy of the License at
012 *
013 * http://www.apache.org/licenses/LICENSE-2.0
014 *
015 * Unless required by applicable law or agreed to in writing,
016 * software distributed under the License is distributed on an
017 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
018 * KIND, either express or implied. See the License for the
019 * specific language governing permissions and limitations
020 * under the License.
021 */
022
023
024 /**
025 * This is a base class of runtime exeptions thrown by Turbine.
026 *
027 * This class represents a non-checked type exception (see
028 * {@link java.lang.RuntimeException}). It has the nested stack trace
029 * functionality found in the {@link TurbineException} class.
030 *
031 * @author <a href="mailto:Rafal.Krzewski@e-point.pl">Rafal Krzewski</a>
032 * @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
033 * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a>
034 */
035 public class TurbineRuntimeException extends RuntimeException
036 {
037 /** Serial version */
038 private static final long serialVersionUID = 2538372732215566444L;
039
040 /**
041 * Constructs a new <code>TurbineRuntimeException</code> without specified
042 * detail message.
043 */
044 public TurbineRuntimeException()
045 {
046 super();
047 }
048
049 /**
050 * Constructs a new <code>TurbineRuntimeException</code> with specified
051 * detail message.
052 *
053 * @param msg the error message.
054 */
055 public TurbineRuntimeException(String msg)
056 {
057 super(msg);
058 }
059
060 /**
061 * Constructs a new <code>TurbineRuntimeException</code> with specified
062 * nested <code>Throwable</code>.
063 *
064 * @param nested the exception or error that caused this exception
065 * to be thrown.
066 */
067 public TurbineRuntimeException(Throwable nested)
068 {
069 super(nested);
070 }
071
072 /**
073 * Constructs a new <code>TurbineRuntimeException</code> with specified
074 * detail message and nested <code>Throwable</code>.
075 *
076 * @param msg the error message.
077 * @param nested the exception or error that caused this exception
078 * to be thrown.
079 */
080 public TurbineRuntimeException(String msg, Throwable nested)
081 {
082 super(msg, nested);
083 }
084
085 }