01: package org.odmg;
02:
03: /**
04: * An attempt to get a object via its name using <code>Database.lookup</code>
05: * and the name is not associated with an object in the database.
06: * @author David Jordan (as Java Editor of the Object Data Management Group)
07: * @version ODMG 3.0
08: * @see org.odmg.Database#lookup
09: */
10:
11: public class ObjectNameNotFoundException extends ODMGException {
12: /**
13: * Construct an instance of the exception.
14: */
15: public ObjectNameNotFoundException() {
16: super ();
17: }
18:
19: /**
20: * Construct an instance of the exception with a descriptive message.
21: * @param msg A message describing the exception.
22: */
23: public ObjectNameNotFoundException(String msg) {
24: super (msg);
25: }
26: /*
27: private String n;
28:
29: * Construct an instance of the exception.
30: * @param name The name passed to Database.lookup that is not associated with
31: * any object in the database.
32:
33: public ObjectNameNotFoundException(String name)
34: {
35: super();
36: n = name;
37: }
38:
39:
40: * Access the name that is not bound to any object in the database.
41: * @return The name that was passed to Database.lookup.
42:
43: public String getName()
44: {
45: return n;
46: }
47: */
48: }
|