Berkeley DB: DbMemoryException
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++

### DbMemoryException |

`

###

    #include <db_cxx.h>

    class DbMemoryException : public DbException {
    public:
    	Dbt *get_dbt() const;
    };

### Description: DbMemoryException

This information describes the DbMemoryException class and how it is used by the various Db* classes.

A DbMemoryException is thrown when there is insufficient memory to complete an operation, and there is the possibility of recovering. An example is during a Db::get or Dbc::get operation with the Dbt flags set to DB_DBT_USERMEM.

The DbException errno value is set to DB_BUFFER_SMALL or ENOMEM.

The get_dbt method returns the Dbt with insufficient memory to complete the operation, causing the DbMemoryException to be thrown. The Dbt pointer may or may not refer to valid memory, depending on whether the Dbt used in the call to the failed Berkeley DB method is still in scope and has not been deleted.

`

Copyright (c) 1996,2007 Oracle. All rights reserved.