KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > odmg > DatabaseClosedException


1 package org.odmg;
2
3
4
5 /**
6
7  * This exception is thrown when an attempt is made to call a method
8
9  * on a Database that has been closed or has not been opened.
10
11  * @author David Jordan (as Java Editor of the Object Data Management Group)
12
13  * @version ODMG 3.0
14
15  * @see org.odmg.Database
16
17  */

18
19
20
21 public class DatabaseClosedException extends ODMGRuntimeException
22
23 {
24
25     /**
26
27      * Construct an instance of the exception without a message.
28
29      */

30
31     public DatabaseClosedException()
32
33     {
34
35         super();
36
37     }
38
39
40
41     /**
42
43      * Construct an instance of the exception with the provided message.
44
45      * @param msg A message indicating why the exception occurred.
46
47      */

48
49     public DatabaseClosedException(String JavaDoc msg)
50
51     {
52
53         super(msg);
54
55     }
56
57 }
58
59
Popular Tags