01: package org.odmg;
02:
03: /**
04:
05: * This exception is thrown when an attempt is made to call a method
06:
07: * on a Database that has been closed or has not been opened.
08:
09: * @author David Jordan (as Java Editor of the Object Data Management Group)
10:
11: * @version ODMG 3.0
12:
13: * @see org.odmg.Database
14:
15: */
16:
17: public class DatabaseClosedException extends ODMGRuntimeException
18:
19: {
20:
21: /**
22:
23: * Construct an instance of the exception without a message.
24:
25: */
26:
27: public DatabaseClosedException()
28:
29: {
30:
31: super ();
32:
33: }
34:
35: /**
36:
37: * Construct an instance of the exception with the provided message.
38:
39: * @param msg A message indicating why the exception occurred.
40:
41: */
42:
43: public DatabaseClosedException(String msg)
44:
45: {
46:
47: super(msg);
48:
49: }
50:
51: }
|