~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to libdb/docs/ref/debug/runtime.html

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!--$Id$-->
2
 
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
3
 
<!--All rights reserved.-->
4
 
<!--See the file LICENSE for redistribution information.-->
5
 
<html>
6
 
<head>
7
 
<title>Berkeley DB Reference Guide: Run-time error information</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++">
10
 
</head>
11
 
<body bgcolor=white>
12
 
<table width="100%"><tr valign=top>
13
 
<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Debugging Applications</dl></h3></td>
14
 
<td align=right><a href="../../ref/debug/compile.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/debug/printlog.html"><img src="../../images/next.gif" alt="Next"></a>
15
 
</td></tr></table>
16
 
<p>
17
 
<h1 align=center>Run-time error information</h1>
18
 
<p>Normally, when an error occurs in the Berkeley DB library, an integer value
19
 
(either a Berkeley DB specific value or a system <b>errno</b> value) is
20
 
returned by the Berkeley DB interface.  In some cases, however, this value
21
 
may be insufficient to completely describe the cause of the error,
22
 
especially during initial application debugging.
23
 
<p>There are four interfaces intended to provide applications with
24
 
additional run-time error information:
25
 
<a href="../../api_c/env_set_errcall.html">DB_ENV-&gt;set_errcall</a>, <a href="../../api_c/env_set_errfile.html">DB_ENV-&gt;set_errfile</a>,
26
 
<a href="../../api_c/env_set_errpfx.html">DB_ENV-&gt;set_errpfx</a>, and <a href="../../api_c/env_set_verbose.html">DB_ENV-&gt;set_verbose</a>.
27
 
<p>If the environment is configured with these interfaces, many Berkeley DB errors
28
 
will result in additional information being written to a file or passed
29
 
as an argument to an application function.
30
 
<p>The Berkeley DB error-reporting facilities do not slow performance or
31
 
significantly increase application size, and may be run during normal
32
 
operation as well as during debugging.  Where possible, we recommend
33
 
that these options always be configured and the output saved in the
34
 
filesystem.  We have found that this often saves time when debugging
35
 
installation or other system-integration problems.
36
 
<p>In addition, there are three interfaces to assist applications in
37
 
displaying their own error messages: <a href="../../api_c/env_strerror.html">db_strerror</a>,
38
 
<a href="../../api_c/env_err.html">DB_ENV-&gt;err</a>, and <a href="../../api_c/env_err.html">DB_ENV-&gt;errx</a>.  The first is a superset of
39
 
the ANSI C strerror interface, and returns a descriptive string for any
40
 
error return from the Berkeley DB library.  The <a href="../../api_c/env_err.html">DB_ENV-&gt;err</a> and
41
 
<a href="../../api_c/env_err.html">DB_ENV-&gt;errx</a> methods use the error message configuration options
42
 
described previously to format and display error messages to appropriate
43
 
output devices.
44
 
<table width="100%"><tr><td><br></td><td align=right><a href="../../ref/debug/compile.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/debug/printlog.html"><img src="../../images/next.gif" alt="Next"></a>
45
 
</td></tr></table>
46
 
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>
47
 
</body>
48
 
</html>