Source code: org/odmg/ObjectNameNotFoundException.java
1 package org.odmg;
2
3 /**
4 * An attempt to get a object via its name using <code>Database.lookup</code>
5 * and the name is not associated with an object in the database.
6 * @author David Jordan (as Java Editor of the Object Data Management Group)
7 * @version ODMG 3.0
8 * @see org.odmg.Database#lookup
9 */
10
11 public class ObjectNameNotFoundException extends ODMGException
12 {
13 /*
14 private String n;
15
16 * Construct an instance of the exception.
17 * @param name The name passed to Database.lookup that is not associated with
18 * any object in the database.
19
20 public ObjectNameNotFoundException(String name)
21 {
22 super();
23 n = name;
24 }
25
26
27 * Access the name that is not bound to any object in the database.
28 * @return The name that was passed to Database.lookup.
29
30 public String getName()
31 {
32 return n;
33 }
34 */
35 /*
36 private String n;
37
38 * Construct an instance of the exception.
39 * @param name The name passed to Database.lookup that is not associated with
40 * any object in the database.
41
42 public ObjectNameNotFoundException(String name)
43 {
44 super();
45 n = name;
46 }
47
48
49 * Access the name that is not bound to any object in the database.
50 * @return The name that was passed to Database.lookup.
51
52 public String getName()
53 {
54 return n;
55 }
56 */
57 /*
58 private String n;
59
60 * Construct an instance of the exception.
61 * @param name The name passed to Database.lookup that is not associated with
62 * any object in the database.
63
64 public ObjectNameNotFoundException(String name)
65 {
66 super();
67 n = name;
68 }
69
70
71 * Access the name that is not bound to any object in the database.
72 * @return The name that was passed to Database.lookup.
73
74 public String getName()
75 {
76 return n;
77 }
78 */
79 /**
80 * Construct an instance of the exception.
81 */
82 public ObjectNameNotFoundException()
83 {
84 super();
85 }
86
87 /**
88 * Construct an instance of the exception with a descriptive message.
89 * @param msg A message describing the exception.
90 */
91 public ObjectNameNotFoundException(String msg)
92 {
93 super(msg);
94 }
95 /*
96 private String n;
97
98 * Construct an instance of the exception.
99 * @param name The name passed to Database.lookup that is not associated with
100 * any object in the database.
101
102 public ObjectNameNotFoundException(String name)
103 {
104 super();
105 n = name;
106 }
107
108
109 * Access the name that is not bound to any object in the database.
110 * @return The name that was passed to Database.lookup.
111
112 public String getName()
113 {
114 return n;
115 }
116 */
117 }