Source code: org/odmg/DatabaseClosedException.java
1 package org.odmg;
2
3 /**
4 * This exception is thrown when an attempt is made to call a method
5 * on a Database that has been closed or has not been opened.
6 * @author David Jordan (as Java Editor of the Object Data Management Group)
7 * @version ODMG 3.0
8 * @see org.odmg.Database
9 */
10
11 public class DatabaseClosedException extends ODMGRuntimeException
12 {
13 /**
14 * Construct an instance of the exception without a message.
15 */
16 public DatabaseClosedException()
17 {
18 super();
19 }
20
21 /**
22 * Construct an instance of the exception with the provided message.
23 * @param msg A message indicating why the exception occurred.
24 */
25 public DatabaseClosedException(String msg)
26 {
27 super(msg);
28 }
29 }