,I'Berkeley DB: DbException[P

DbException





import com.sleepycat.db.*;

+public class DbException extends Exception;public DbException(String s);(public DbException(String s, int errno);





Description



CThis manual page describes the DbException class and how it is usedby the various Db* classes.

GMost methods in the Db classes throw an exception when an error occurs.CA DbException object contains an informational string and an errno.nThe errno can be obtained using DbException.get_errno.>Since DbException inherits from the java.Exception, the string&portion is available using toString().

ESome methods may return non-zero values without issuing an exception.HThis occurs in situations that are not normally considered an error, butiwhen some informational status is returned. For example, Db.getIreturns DB_NOTFOUND when a requested key does not appear in the database.



Class

DbException



See Also

MDbException.get_errno
ÿÿ