KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > jdo > JDOObjectNotFoundException


1 /*
2  * Copyright 2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 /*
18  * JDOObjectNotFoundException.java
19  *
20  */

21
22 package javax.jdo;
23
24 /** This class represents exceptions caused by the user accessing
25  * an object that does not exist in the datastore.
26  *
27  * @since 1.0.1
28  * @version 1.0.1
29  */

30 public class JDOObjectNotFoundException extends JDODataStoreException {
31
32   /**
33    * Constructs a new <code>JDOObjectNotFoundException</code>
34    * without a detail message.
35    */

36   public JDOObjectNotFoundException() {
37   }
38   
39
40   /**
41    * Constructs a new <code>JDOObjectNotFoundException</code>
42    * with the specified detail message.
43    * @param msg the detail message.
44    */

45   public JDOObjectNotFoundException(String JavaDoc msg) {
46     super(msg);
47   }
48
49   /** Constructs a new <code>JDOObjectNotFoundException</code> with the specified detail message
50    * and failed object.
51    * @param msg the detail message.
52    * @param failed the failed object.
53    */

54   public JDOObjectNotFoundException(String JavaDoc msg, Object JavaDoc failed) {
55     super(msg, failed);
56   }
57   
58   /**
59    * Constructs a new <code>JDOObjectNotFoundException</code> with the
60    * specified detail message and nested <code>Throwable</code>s.
61    * @param msg the detail message.
62    * @param nested the nested <code>Throwable[]</code>.
63    */

64   public JDOObjectNotFoundException(String JavaDoc msg, Throwable JavaDoc[] nested) {
65     super(msg, nested);
66   }
67
68 }
69
70
Popular Tags