View Javadoc

1   package org.apache.torque;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "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      /***
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  }