import com.sleepycat.db.*;

public class DbException extends Exception { public int get_errno(); 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 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 java.lang.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.


Copyright Sleepycat Software