01: package org.odmg;
02:
03: /**
04: * This exception is thrown when an attempt is made to call a method
05: * on a Database that has been closed or has not been opened.
06: * @author David Jordan (as Java Editor of the Object Data Management Group)
07: * @version ODMG 3.0
08: * @see org.odmg.Database
09: */
10:
11: public class DatabaseClosedException extends ODMGRuntimeException {
12: /**
13: * Construct an instance of the exception without a message.
14: */
15: public DatabaseClosedException() {
16: super ();
17: }
18:
19: /**
20: * Construct an instance of the exception with the provided message.
21: * @param msg A message indicating why the exception occurred.
22: */
23: public DatabaseClosedException(String msg) {
24: super(msg);
25: }
26: }
|