001 package org.odmg;
002
003
004
005 /**
006
007 * This exception is thrown when an attempt is made to call a method
008
009 * on a Database that has been closed or has not been opened.
010
011 * @author David Jordan (as Java Editor of the Object Data Management Group)
012
013 * @version ODMG 3.0
014
015 * @see org.odmg.Database
016
017 */
018
019
020
021 public class DatabaseClosedException extends ODMGRuntimeException
022
023 {
024
025 /**
026
027 * Construct an instance of the exception without a message.
028
029 */
030
031 public DatabaseClosedException()
032
033 {
034
035 super();
036
037 }
038
039
040
041 /**
042
043 * Construct an instance of the exception with the provided message.
044
045 * @param msg A message indicating why the exception occurred.
046
047 */
048
049 public DatabaseClosedException(String msg)
050
051 {
052
053 super(msg);
054
055 }
056
057 }
058