1 package org.apache.torque.engine;
2
3 /*
4 * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE
5 * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
7 * License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
12 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
13 * specific language governing permissions and limitations under the License.
14 */
15
16 import org.apache.commons.lang.exception.NestableException;
17
18 /**
19 * The base class of all exceptions thrown by the engine.
20 *
21 * @author <a href="mailto:dlr@collab.net">Daniel Rall</a>
22 * @author <a href="mailto:jvz@apache.org">Jason van Zyl</a>
23 * @version $Id: EngineException.java,v 1.1 2007-10-21 07:57:27 abyrne Exp $
24 */
25 public class EngineException extends NestableException {
26 /**
27 * Serial version
28 */
29 private static final long serialVersionUID = 3021095306218344981L;
30
31 /**
32 * Constructs a new <code>EngineException</code> without specified detail message.
33 */
34 public EngineException() {
35 }
36
37 /**
38 * Constructs a new <code>EngineException</code> with specified detail message.
39 *
40 * @param msg
41 * the error message.
42 */
43 public EngineException(String msg) {
44 super(msg);
45 }
46
47 /**
48 * Constructs a new <code>EngineException</code> with specified nested <code>Throwable</code>.
49 *
50 * @param nested
51 * the exception or error that caused this exception to be thrown.
52 */
53 public EngineException(Throwable nested) {
54 super(nested);
55 }
56
57 /**
58 * Constructs a new <code>EngineException</code> with specified detail message and nested <code>Throwable</code>.
59 *
60 * @param msg
61 * the error message.
62 * @param nested
63 * the exception or error that caused this exception to be thrown.
64 */
65 public EngineException(String msg, Throwable nested) {
66 super(msg, nested);
67 }
68 }