import com.sleepycat.db.*;public class DbException extends Exception; public DbException(String s); public DbException(String s, int errno);
This manual page describes the DbException class and how it is used by the various Db* classes.
Most methods in the 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.