Berkeley DB XML
version 2.2.13

com.sleepycat.db
Class DatabaseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sleepycat.db.DatabaseException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DeadlockException, MemoryException, ReplicationHandleDeadException, RunRecoveryException, XmlException

public class DatabaseException
extends Exception

The root of all database exceptions.

Note that in some cases, certain methods return status values without issuing an exception. This occurs in situations that are not normally considered an error, but when some informational status is returned. For example, Database.get returns OperationStatus.NOTFOUND when a requested key does not appear in the database.

See Also:
Serialized Form

Method Summary
 Environment getEnvironment()
          Return the environment in which the exception occurred.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getEnvironment

public Environment getEnvironment()
Return the environment in which the exception occurred.

This method may be called at any time during the life of the application.

Returns:
The environment in which the exception occurred.

Berkeley DB XML
version 2.2.13

Copyright (c) 1996-2004 Sleepycat Software, Inc. - All rights reserved.