2
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
3
<!--All rights reserved.-->
4
<!--See the file LICENSE for redistribution information.-->
7
<title>Berkeley DB: DbEnv::set_errpfx</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
<a name="2"><!--meow--></a>
13
<table width="100%"><tr valign=top>
15
<h1>DbEnv::set_errpfx</h1>
18
<a href="../api_cxx/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
23
#include <db_cxx.h>
25
void DbEnv::set_errpfx(const char *errpfx);
28
<p>Set the prefix string that appears before error messages issued by Berkeley DB.
29
<p>The <a href="../api_cxx/db_set_errpfx.html">Db::set_errpfx</a> and DbEnv::set_errpfx methods do not copy
30
the memory to which the <b>errpfx</b> argument refers; rather, they
31
maintain a reference to it. Although this allows applications to modify
32
the error message prefix at any time (without repeatedly calling the
33
interfaces), it means the memory must be maintained until the handle is
35
<p>The DbEnv::set_errpfx interface may be called at any time during the life of
38
<a href="../api_cxx/env_class.html">DbEnv</a>
40
<a href="../api_cxx/env_list.html">Database Environments and Related Methods</a>
42
<table width="100%"><tr><td><br></td><td align=right>
43
<a href="../api_cxx/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
45
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>