1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package javax.jdo;
24
25 /** An instance of this class is thrown when attempting to create an object id
26 * when the object id constructor parameter is null. This might occur when
27 * creating an object id instance from a transient instance where an identity
28 * field is null.
29 *
30 * @since 2.0
31 * @version 2.0
32 */
33 public class JDONullIdentityException extends JDOUserException {
34
35 /**
36 * Constructs a new <code>JDONullIdentityException</code> without a detail message.
37 */
38 public JDONullIdentityException() {
39 }
40
41 /**
42 * Constructs a new <code>JDONullIdentityException</code> with the specified detail message.
43 * @param msg the detail message.
44 */
45 public JDONullIdentityException(String msg) {
46 super(msg);
47 }
48
49 /** Constructs a new <code>JDONullIdentityException</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 JDONullIdentityException(String msg, Object failed) {
55 super(msg, failed);
56 }
57
58 /**
59 * Constructs a new <code>JDONullIdentityException</code> with the specified
60 * 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 JDONullIdentityException(String msg, Throwable[] nested) {
65 super(msg, nested);
66 }
67
68 /**
69 * Constructs a new <code>JDONullIdentityException</code> with the specified detail message
70 * and nested <code>Throwable</code>s.
71 * @param msg the detail message.
72 * @param nested the nested <code>Throwable</code>.
73 */
74 public JDONullIdentityException(String msg, Throwable nested) {
75 super(msg, nested);
76 }
77
78 }