DbException

APIRef

import com.sleepycat.db.*;

public class DbException extends Exception { ... }

Description

This manual page describes the DbException class and how it is used by the various Berkeley DB classes.

Most methods in the Berkeley DB classes throw an exception when an error occurs. A DbException object contains an informational string and an errno. The errno can be obtained using DbException.get_errno. Since DbException inherits from the java.Exception, the string portion is available using toString().

Some methods may return non-zero 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, Db.get returns DB_NOTFOUND when a requested key does not appear in the database.

Class

DbException

See Also

DbException.get_errno, DbDeadlockException, DbMemoryException and DbRunRecoveryException.

APIRef

Copyright Sleepycat Software