<!--$Id: err.so,v 1.3 2004/09/28 14:13:09 bostic Exp $-->
<!--Copyright (c) 1997,2008 Oracle. All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB Reference Guide: Release 4.3: DB_ENV->set_errcall, DB->set_errcall</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
</head>
<body bgcolor=white>
<table width="100%"><tr valign=top>
<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></b></td>
<td align=right><a href="../upgrade.4.3/java.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../upgrade.4.3/cput.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p align=center><b>Release 4.3: DB_ENV->set_errcall, DB->set_errcall</b></p>
<p>The signature of the error callback passed to the
<a href="../../api_c/env_set_errcall.html">DB_ENV->set_errcall</a> and <a href="../../api_c/db_set_errcall.html">DB->set_errcall</a> methods has changed in
the 4.3 release. For example, if you previously had a function such as
this:</p>
<blockquote><pre>void handle_db_error(const char *prefix, char *message);</pre></blockquote>
<p>it should be changed to this:</p>
<blockquote><pre>void handle_db_error(const DB_ENV *dbenv,
const char *prefix, const char *message);</pre></blockquote>
<p>This change adds the <a href="../../api_c/env_class.html">DB_ENV</a> handle to provide database
environment context for the callback function, and incidentally makes
it clear the message parameter cannot be changed by the callback.</p>
<table width="100%"><tr><td><br></td><td align=right><a href="../upgrade.4.3/java.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../upgrade.4.3/cput.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font>
</body>
</html>
Copyright 2K16 - 2K18 Indonesian Hacker Rulez