2
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
3
<!--All rights reserved.-->
4
<!--See the file LICENSE for redistribution information.-->
7
<title>Berkeley DB Reference Guide: Release 3.0: additional C++ changes</title>
8
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
9
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
12
<table width="100%"><tr valign=top>
13
<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td>
14
<td align=right><a href="../../ref/upgrade.3.0/db_cxx.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/java.html"><img src="../../images/next.gif" alt="Next"></a>
17
<h1 align=center>Release 3.0: additional C++ changes</h1>
18
<p>The Db::set_error_model method is gone. The way to change the C++ API to
19
return errors rather than throw exceptions is via a flag on the DbEnv or
20
Db constructor. For example:
21
<p><blockquote><pre>int dberr;
22
DbEnv *dbenv = new DbEnv(DB_CXX_NO_EXCEPTIONS);</pre></blockquote>
23
<p>creates an environment that will never throw exceptions, and method
24
returns should be checked instead.
25
<p>There are a number of smaller changes to the API that bring the C, C++
26
and Java APIs much closer in terms of functionality and usage. Please
27
refer to the pages for upgrading C applications for further details.
28
<table width="100%"><tr><td><br></td><td align=right><a href="../../ref/upgrade.3.0/db_cxx.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/upgrade.3.0/java.html"><img src="../../images/next.gif" alt="Next"></a>
30
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>