Debian Codegraph @

docs/api_reference/C/dbset_errpfx.html

raw symbols SCIP
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>DB-&gt;set_errpfx()</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="db.html" title="Chapter 2.  The DB Handle" />
11 <link rel="prev" href="dbset_errfile.html" title="DB-&gt;set_errfile()" />
12 <link rel="next" href="dbset_feedback.html" title="DB-&gt;set_feedback()" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">DB-&gt;set_errpfx()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="dbset_errfile.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 2. 
26 The DB Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="dbset_feedback.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="dbset_errpfx"></a>DB-&gt;set_errpfx()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 void
44 DB-&gt;set_errpfx(DB *db, const char *errpfx); </pre>
45 <p>
46 Set the prefix string that appears before error messages issued by
47 Berkeley DB.
48 </p>
49 <p>
50 The <code class="methodname">DB-&gt;set_errpfx()</code> and
51 <a class="xref" href="envset_errpfx.html" title="DB_ENV-&gt;set_errpfx()">DB_ENV-&gt;set_errpfx()</a>
52 methods do not copy the memory to which the <span class="bold"><strong>errpfx</strong></span> parameter refers; rather, they maintain
53 a reference to it. Although this allows applications to modify the
54 error message prefix at any time (without repeatedly calling the
55 interfaces), it means the memory must be maintained until the handle
56 is closed.
57 </p>
58 <p>
59 For <a class="link" href="db.html" title="Chapter 2.  The DB Handle">DB</a> handles opened
60 inside of Berkeley DB environments, calling the <code class="methodname">DB-&gt;set_errpfx()</code>
61 method affects the entire environment and is equivalent to calling the
62 <a class="xref" href="envset_errpfx.html" title="DB_ENV-&gt;set_errpfx()">DB_ENV-&gt;set_errpfx()</a>
63 method.
64 </p>
65 <p>
66 The <code class="methodname">DB-&gt;set_errpfx()</code> method configures operations performed using the
67 specified <a class="link" href="db.html" title="Chapter 2.  The DB Handle">DB</a> handle, not
68 all operations performed on the underlying database.
69 </p>
70 <p>
71 The <code class="methodname">DB-&gt;set_errpfx()</code> method may be called at any time during the life
72 of the application.
73 </p>
74 <div class="sect2" lang="en" xml:lang="en">
75 <div class="titlepage">
76 <div>
77 <div>
78 <h3 class="title"><a id="idp50270840"></a>Parameters</h3>
79 </div>
80 </div>
81 </div>
82 <div class="sect3" lang="en" xml:lang="en">
83 <div class="titlepage">
84 <div>
85 <div>
86 <h4 class="title"><a id="idp50271032"></a>errpfx</h4>
87 </div>
88 </div>
89 </div>
90 <p>
91 The <span class="bold"><strong>errpfx</strong></span> parameter is the
92 application-specified error prefix for additional error messages.
93 </p>
94 </div>
95 </div>
96 <div class="sect2" lang="en" xml:lang="en">
97 <div class="titlepage">
98 <div>
99 <div>
100 <h3 class="title"><a id="idp50259104"></a>Class</h3>
101 </div>
102 </div>
103 </div>
104 <p>
105 <a class="link" href="db.html" title="Chapter 2.  The DB Handle">DB</a>
106 </p>
107 </div>
108 <div class="sect2" lang="en" xml:lang="en">
109 <div class="titlepage">
110 <div>
111 <div>
112 <h3 class="title"><a id="idp50261480"></a>See Also</h3>
113 </div>
114 </div>
115 </div>
116 <p>
117 <a class="xref" href="db.html#dblist" title="Database and Related Methods">Database and Related Methods</a>
118 </p>
119 </div>
120 </div>
121 <div class="navfooter">
122 <hr />
123 <table width="100%" summary="Navigation footer">
124 <tr>
125 <td width="40%" align="left"><a accesskey="p" href="dbset_errfile.html">Prev</a> </td>
126 <td width="20%" align="center">
127 <a accesskey="u" href="db.html">Up</a>
128 </td>
129 <td width="40%" align="right"> <a accesskey="n" href="dbset_feedback.html">Next</a></td>
130 </tr>
131 <tr>
132 <td width="40%" align="left" valign="top">DB-&gt;set_errfile() </td>
133 <td width="20%" align="center">
134 <a accesskey="h" href="index.html">Home</a>
135 </td>
136 <td width="40%" align="right" valign="top"> DB-&gt;set_feedback()</td>
137 </tr>
138 </table>
139 </div>
140 </body>
141 </html>