com.xavax.xstore.exception
Class DatabaseNotRegisteredException

Object
  extended byThrowable
      extended byException
          extended byRuntimeException
              extended byPersistenceException
                  extended byDatabaseNotRegisteredException
All Implemented Interfaces:
Serializable

public class DatabaseNotRegisteredException
extends PersistenceException

DatabaseNotRegisteredException is thrown when an attempt is made to use a database that was not registered with the persistence manager and described in the metadata.

See Also:
Serialized Form

Constructor Summary
DatabaseNotRegisteredException(PersistenceManager pm, String databaseName)
          Construct a DatabaseNotRegisteredException.
 
Method Summary
 void handle()
          Handle this exception by writing a description of the exception to the log file.
 
Methods inherited from class PersistenceException
header, manager, name, trailer
 
Methods inherited from class Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabaseNotRegisteredException

public DatabaseNotRegisteredException(PersistenceManager pm,
                                      String databaseName)
Construct a DatabaseNotRegisteredException.

Parameters:
pm - the persistence manager.
databaseName - the name of the unregistered database.
Method Detail

handle

public void handle()
Handle this exception by writing a description of the exception to the log file.

Overrides:
handle in class PersistenceException