1<!--$Id: env_strerror.so,v 8.13 2004/08/13 03:38:57 bostic Exp $--> 2<!--Copyright (c) 1997,2008 Oracle. All rights reserved.--> 3<!--See the file LICENSE for redistribution information.--> 4<html> 5<head> 6<title>Berkeley DB: DbEnv::strerror</title> 7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> 8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> 9</head> 10<body bgcolor=white> 11<table width="100%"><tr valign=top> 12<td> 13<b>DbEnv::strerror</b> 14</td> 15<td align=right> 16<a href="/api_cxx/api_core.html"><img src="/images/api.gif" alt="API"></a> 17<a href="/ref/toc.html"><img src="/images/ref.gif" alt="Ref"></a></td> 18</tr></table> 19<hr size=1 noshade> 20<tt> 21<b><pre> 22#include <db_cxx.h> 23<p> 24static char * 25DbEnv::strerror(int error); 26</pre></b> 27<hr size=1 noshade> 28<b>Description: DbEnv::strerror</b> 29<p>The DbEnv::strerror method returns an error message string corresponding 30to the error number <b>error</b> parameter.</p> 31<p>This function is a superset of the ANSI C X3.159-1989 (ANSI C) <b>strerror</b>(3) function. If the error number <b>error</b> is greater than or 32equal to 0, then the string returned by the system function 33<b>strerror</b>(3) is returned. If the error number is less than 340, an error string appropriate to the corresponding Berkeley DB library error 35is returned. See 36<a href="/ref/program/errorret.html">Error returns to applications</a> 37for more information.</p> 38<b>Parameters</b> <br> 39 <b>error</b><ul compact><li>The <b>error</b> parameter is the error number for which an error message 40string is wanted.</ul> 41<br> 42<hr size=1 noshade> 43<br><b>Class</b> 44<a href="/api_cxx/env_class.html">DbEnv</a> 45<br><b>See Also</b> 46<a href="/api_cxx/env_list.html">Database Environments and Related Methods</a> 47</tt> 48<table width="100%"><tr><td><br></td><td align=right> 49<a href="/api_cxx/api_core.html"><img src="/images/api.gif" alt="API"></a><a href="/ref/toc.html"><img src="/images/ref.gif" alt="Ref"></a> 50</td></tr></table> 51<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 52</body> 53</html> 54