1 package org.apache.torque;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 /***
34 * Serial version
35 */
36 private static final long serialVersionUID = 3090544800848674368L;
37
38 /***
39 * Constructs a new <code>TorqueException</code> without specified detail
40 * message.
41 */
42 public TorqueException()
43 {
44 }
45
46 /***
47 * Constructs a new <code>TorqueException</code> with specified detail
48 * message.
49 *
50 * @param msg the error message.
51 */
52 public TorqueException(String msg)
53 {
54 super(msg);
55 }
56
57 /***
58 * Constructs a new <code>TorqueException</code> with specified nested
59 * <code>Throwable</code>.
60 *
61 * @param nested the exception or error that caused this exception
62 * to be thrown.
63 */
64 public TorqueException(Throwable nested)
65 {
66 super(nested);
67 }
68
69 /***
70 * Constructs a new <code>TorqueException</code> with specified detail
71 * message and nested <code>Throwable</code>.
72 *
73 * @param msg the error message.
74 * @param nested the exception or error that caused this exception
75 * to be thrown.
76 */
77 public TorqueException(String msg, Throwable nested)
78 {
79 super(msg, nested);
80 }
81 }