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 no rows were returned but atleast one should
21   * have been returned.
22   *
23   * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a>
24   * @version $Id: NoRowsException.java 239630 2005-08-24 12:25:32Z henning $
25   */
26  public class NoRowsException extends TorqueException
27  {
28  
29      /***
30       * Constructs a new <code>TorqueException</code> without specified detail
31       * message.
32       */
33      public NoRowsException()
34      {
35      }
36  
37      /***
38       * Constructs a new <code>TorqueException</code> with specified detail
39       * message.
40       *
41       * @param msg the error message.
42       */
43      public NoRowsException(String msg)
44      {
45          super(msg);
46      }
47  
48      /***
49       * Constructs a new <code>TorqueException</code> with specified nested
50       * <code>Throwable</code>.
51       *
52       * @param nested the exception or error that caused this exception
53       *               to be thrown.
54       */
55      public NoRowsException(Throwable nested)
56      {
57          super(nested);
58      }
59  
60      /***
61       * Constructs a new <code>TorqueException</code> with specified detail
62       * message and nested <code>Throwable</code>.
63       *
64       * @param msg the error message.
65       * @param nested the exception or error that caused this exception
66       *               to be thrown.
67       */
68      public NoRowsException(String msg, Throwable nested)
69      {
70          super(msg, nested);
71      }
72  }