# Berkeley DB: DbException.get_errno
Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++

# DbException.get_errno

`

###

    import com.sleepycat.db.*;

    public int get_errno();

# Description

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().

# Class

DbException

# See Also

DbException.get_errno, DbDeadlockException, DbMemoryException, and DbRunRecoveryException.`

Copyright Sleepycat Software