KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > jdo > JDONullIdentityException


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  * JDONullIdentityException.java
19  *
20  */

21
22 package javax.jdo;
23
24 /** An instance of this class is thrown when attempting to create an object id
25  * when the object id constructor parameter is null. This might occur when
26  * creating an object id instance from a transient instance where an identity
27  * field is null.
28  *
29  * @since 2.0
30  * @version 2.0
31  */

32 public class JDONullIdentityException extends JDOUserException {
33
34   /**
35    * Constructs a new <code>JDONullIdentityException</code> without a detail message.
36    */

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

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

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

63   public JDONullIdentityException(String JavaDoc msg, Throwable JavaDoc[] nested) {
64     super(msg, nested);
65   }
66
67   /**
68    * Constructs a new <code>JDONullIdentityException</code> with the specified detail message
69    * and nested <code>Throwable</code>s.
70    * @param msg the detail message.
71    * @param nested the nested <code>Throwable</code>.
72    */

73   public JDONullIdentityException(String JavaDoc msg, Throwable JavaDoc nested) {
74     super(msg, nested);
75   }
76
77 }
78
Popular Tags