• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/db-4.8.30/docs/api_reference/CXX/
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4  <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6    <title>DbMemoryException</title>
7    <link rel="stylesheet" href="apiReference.css" type="text/css" />
8    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9    <link rel="start" href="index.html" title="Berkeley DB C++ API Reference" />
10    <link rel="up" href="dbexception.html" title="Chapter 6. The DbException Class" />
11    <link rel="prev" href="dblocknotgranted.html" title="DbLockNotGrantedException" />
12    <link rel="next" href="dbrephandledead.html" title="DbRepHandleDeadException" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">DbMemoryException</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="dblocknotgranted.html">Prev</a> </td>
22          <th width="60%" align="center">Chapter 6. The DbException Class</th>
23          <td width="20%" align="right"> <a accesskey="n" href="dbrephandledead.html">Next</a></td>
24        </tr>
25      </table>
26      <hr />
27    </div>
28    <div class="sect1" lang="en" xml:lang="en">
29      <div class="titlepage">
30        <div>
31          <div>
32            <h2 class="title" style="clear: both"><a id="dbmemory"></a>DbMemoryException</h2>
33          </div>
34        </div>
35      </div>
36      <pre class="programlisting">#include &lt;db_cxx.h&gt;
37
38class DbMemoryException : public DbException {
39public:
40    Dbt *get_dbt() const;
41}; </pre>
42      <p>
43            This information describes the <code class="classname">DbMemoryException</code> class and how 
44            it is used by the various Berkeley DB classes.
45    </p>
46      <p>
47            A <code class="classname">DbMemoryException</code> is thrown when there is insufficient memory to
48            complete an operation, and there is the possibility of recovering. An example is during a
49            <a class="xref" href="dbget.html" title="Db::get()">Db::get()</a> or 
50            <a class="xref" href="dbcget.html" title="Dbc::get()">Dbc::get()</a> operation with the 
51            <a class="link" href="dbt.html" title="Chapter 4.  The Dbt Handle">Dbt</a> flags set to 
52            <a class="link" href="dbt.html#dbt_DB_DBT_USERMEM">DB_DBT_USERMEM</a>.
53    </p>
54      <p>
55            The <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a> errno value is set to
56            <code class="literal">DB_BUFFER_SMALL</code> or <code class="literal">ENOMEM</code>.
57    </p>
58      <p>
59            The <code class="methodname">get_dbt()</code> method returns the 
60            <a class="link" href="dbt.html" title="Chapter 4.  The Dbt Handle">Dbt</a> with insufficient memory to complete the
61            operation, causing the <code class="classname">DbMemoryException</code> to be thrown.
62            The <a class="link" href="dbt.html" title="Chapter 4.  The Dbt Handle">Dbt</a> pointer may or may not refer to valid
63            memory, depending on whether the <a class="link" href="dbt.html" title="Chapter 4.  The Dbt Handle">Dbt</a>
64            used in the call to the failed Berkeley DB method is still in scope and has not been
65            deleted.
66    </p>
67    </div>
68    <div class="navfooter">
69      <hr />
70      <table width="100%" summary="Navigation footer">
71        <tr>
72          <td width="40%" align="left"><a accesskey="p" href="dblocknotgranted.html">Prev</a> </td>
73          <td width="20%" align="center">
74            <a accesskey="u" href="dbexception.html">Up</a>
75          </td>
76          <td width="40%" align="right"> <a accesskey="n" href="dbrephandledead.html">Next</a></td>
77        </tr>
78        <tr>
79          <td width="40%" align="left" valign="top">DbLockNotGrantedException </td>
80          <td width="20%" align="center">
81            <a accesskey="h" href="index.html">Home</a>
82          </td>
83          <td width="40%" align="right" valign="top"> DbRepHandleDeadException</td>
84        </tr>
85      </table>
86    </div>
87  </body>
88</html>
89