01: package org.apache.torque;
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.NestableException;
23:
24: /**
25: * The base class of all exceptions thrown by Torque.
26: *
27: * @author <a href="mailto:dlr@collab.net">Daniel Rall</a>
28: * @author <a href="mailto:jvz@apache.org">Jason van Zyl</a>
29: * @version $Id: TorqueException.java 473821 2006-11-11 22:37:25Z tv $
30: */
31: public class TorqueException extends NestableException {
32: /**
33: * Serial version
34: */
35: private static final long serialVersionUID = 3090544800848674368L;
36:
37: /**
38: * Constructs a new <code>TorqueException</code> without specified detail
39: * message.
40: */
41: public TorqueException() {
42: }
43:
44: /**
45: * Constructs a new <code>TorqueException</code> with specified detail
46: * message.
47: *
48: * @param msg the error message.
49: */
50: public TorqueException(String msg) {
51: super (msg);
52: }
53:
54: /**
55: * Constructs a new <code>TorqueException</code> with specified nested
56: * <code>Throwable</code>.
57: *
58: * @param nested the exception or error that caused this exception
59: * to be thrown.
60: */
61: public TorqueException(Throwable nested) {
62: super (nested);
63: }
64:
65: /**
66: * Constructs a new <code>TorqueException</code> with specified detail
67: * message and nested <code>Throwable</code>.
68: *
69: * @param msg the error message.
70: * @param nested the exception or error that caused this exception
71: * to be thrown.
72: */
73: public TorqueException(String msg, Throwable nested) {
74: super(msg, nested);
75: }
76: }
|