View Javadoc

1   package org.apache.torque;
2   
3   /*
4    * Copyright 2001-2005 The Apache Software Foundation.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License")
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *     http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  /***
20   * This exception indicates that more rows were returned than expected.
21   *
22   * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a>
23   * @version $Id: TooManyRowsException.java 239630 2005-08-24 12:25:32Z henning $
24   */
25  public class TooManyRowsException extends TorqueException
26  {
27  
28      /***
29       * Constructs a new <code>TorqueException</code> without specified detail
30       * message.
31       */
32      public TooManyRowsException()
33      {
34      }
35  
36      /***
37       * Constructs a new <code>TorqueException</code> with specified detail
38       * message.
39       *
40       * @param msg the error message.
41       */
42      public TooManyRowsException(String msg)
43      {
44          super(msg);
45      }
46  
47      /***
48       * Constructs a new <code>TorqueException</code> with specified nested
49       * <code>Throwable</code>.
50       *
51       * @param nested the exception or error that caused this exception
52       *               to be thrown.
53       */
54      public TooManyRowsException(Throwable nested)
55      {
56          super(nested);
57      }
58  
59      /***
60       * Constructs a new <code>TorqueException</code> with specified detail
61       * message and nested <code>Throwable</code>.
62       *
63       * @param msg the error message.
64       * @param nested the exception or error that caused this exception
65       *               to be thrown.
66       */
67      public TooManyRowsException(String msg, Throwable nested)
68      {
69          super(msg, nested);
70      }
71  }