1<!--$Id: memp_class.so,v 10.21 2006/10/24 15:47:59 bostic Exp $-->
2<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
3<!--See the file LICENSE for redistribution information.-->
4<html>
5<head>
6<title>Berkeley DB: DbMemoryException</title>
7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
9</head>
10<body bgcolor=white>
11<table width="100%"><tr valign=top>
12<td>
13<b>DbMemoryException</b>
14</td>
15<td align=right>
16<a href="../api_cxx/api_core.html"><img src="../images/api.gif" alt="API"></a>
17<a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a></td>
18</tr></table>
19<hr size=1 noshade>
20<tt>
21<b><pre>
22#include &lt;db_cxx.h&gt;
23<p>
24class DbMemoryException : public DbException {
25public:
26	Dbt *get_dbt() const;
27};
28</pre></b>
29<hr size=1 noshade>
30<b>Description: DbMemoryException</b>
31<p>This information describes the DbMemoryException class and how
32it is used by the various Db* classes.</p>
33<p>A DbMemoryException is thrown when there is insufficient memory
34to complete an operation, and there is the possibility of recovering.
35An example is during a <a href="../api_cxx/db_get.html">Db::get</a> or <a href="../api_cxx/dbc_get.html">Dbc::get</a> operation with
36the <a href="../api_cxx/dbt_class.html">Dbt</a> flags set to <a href="../api_cxx/dbt_class.html#DB_DBT_USERMEM">DB_DBT_USERMEM</a>.</p>
37<a name="2"><!--meow--></a>
38<p>The <a href="../api_cxx/except_class.html">DbException</a> errno value is set to <a href="../api_cxx/dbt_class.html#DB_BUFFER_SMALL">DB_BUFFER_SMALL</a>
39or ENOMEM.</p>
40<p>The <b>get_dbt</b> method returns the <a href="../api_cxx/dbt_class.html">Dbt</a> with insufficient
41memory to complete the operation, causing the DbMemoryException
42to be thrown.
43The <a href="../api_cxx/dbt_class.html">Dbt</a> pointer may or may not refer to valid memory, depending
44on whether the <a href="../api_cxx/dbt_class.html">Dbt</a> used in the call to the failed Berkeley DB method
45is still in scope and has not been deleted.</p>
46</tt>
47<table width="100%"><tr><td><br></td><td align=right>
48<a href="../api_cxx/api_core.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
49</td></tr></table>
50<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
51</body>
52</html>
53