KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jdo > api > persistence > support > JDOObjectNotFoundException


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /*
25  * JDOObjectNotFoundException.java
26  *
27  * Created on May 06, 2002
28  */

29
30 package com.sun.jdo.api.persistence.support;
31
32 /**
33  * JDOObjectNotFoundException is thrown instead of a more generic JDODataStoreException
34  * in case an internal or an external query returned 0 rows.
35  *
36  * @author Marina Vatkina
37  * @version 0.1
38  */

39 public class JDOObjectNotFoundException extends JDODataStoreException {
40
41   /**
42    * Creates a new <code>JDOObjectNotFoundException</code> without detail message.
43    */

44   public JDOObjectNotFoundException() {
45   }
46   
47
48   /**
49    * Constructs a new <code>JDOObjectNotFoundException</code> with the specified
50    * detail message.
51    * @param msg the detail message.
52    */

53   public JDOObjectNotFoundException(String JavaDoc msg) {
54     super(msg);
55   }
56
57   /**
58    * Constructs a new <code>JDOObjectNotFoundException</code> with the specified
59    * detail message and nested Exception.
60    * @param msg the detail message.
61    * @param nested the nested <code>Exception</code>.
62    */

63   public JDOObjectNotFoundException(String JavaDoc msg, Exception JavaDoc nested) {
64     super(msg, nested);
65   }
66   
67   /** Constructs a new <code>JDOObjectNotFoundException</code> with the specified
68    * detail message and failed object array.
69    * @param msg the detail message.
70    * @param failed the failed object array.
71    */

72   public JDOObjectNotFoundException(String JavaDoc msg, Object JavaDoc[] failed) {
73     super(msg, failed);
74   }
75   
76   /** Constructs a new <code>JDOObjectNotFoundException</code> with the specified
77    * detail message, nested exception, and failed object array.
78    * @param msg the detail message.
79    * @param nested the nested <code>Exception</code>.
80    * @param failed the failed object array.
81    */

82   public JDOObjectNotFoundException(String JavaDoc msg, Exception JavaDoc nested, Object JavaDoc[] failed) {
83     super(msg, nested, failed);
84   }
85 }
86
87
Popular Tags