DbMemoryException

#include <db_cxx.h>

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

This information describes the DbMemoryException class and how it is used by the various Berkeley 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.