# DbMemoryException

`

###

    #include <db_cxx.h>

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

# Description

This manual page 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 get_dbt method returns the Dbt that has 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 Sleepycat Software