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>DbRunRecoveryException</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="dbexception.html" title="Chapter 6. The DbException Class" /> 11 <link rel="prev" href="dbrephandledead.html" title="DbRepHandleDeadException" /> 12 <link rel="next" href="lock.html" title="Chapter 7. The DbLock Handle" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">DbRunRecoveryException</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="dbrephandledead.html">Prev</a> </td> 22 <th width="60%" align="center">Chapter 6. The DbException Class</th> 23 <td width="20%" align="right"> <a accesskey="n" href="lock.html">Next</a></td> 24 </tr> 25 </table> 26 <hr /> 27 </div> 28 <div class="sect1" lang="en" xml:lang="en"> 29 <div class="titlepage"> 30 <div> 31 <div> 32 <h2 class="title" style="clear: both"><a id="dbrunrecovery"></a>DbRunRecoveryException</h2> 33 </div> 34 </div> 35 </div> 36 <pre class="programlisting">#include <db_cxx.h> 37 38class DbRunRecoveryException : public DbException { ... }; </pre> 39 <p> 40 This information describes the <code class="classname">DbRunRecoveryException</code> class and how 41 it is used by the various Berkeley DB classes. 42 </p> 43 <p> 44 Errors can occur in the Berkeley DB library where the only solution is to shut down the 45 application and run recovery (for example, if Berkeley DB is unable to allocate heap 46 memory). When a fatal error occurs in Berkeley DB, methods will throw a 47 <code class="classname">DbRunRecoveryException</code>, at which point all subsequent Berkeley 48 DB calls will also fail in the same way. When this occurs, recovery should be performed. 49 </p> 50 <p> 51 The <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a> errno value is set to 52 <code class="literal">DB_RUNRECOVERY</code>. 53 </p> 54 </div> 55 <div class="navfooter"> 56 <hr /> 57 <table width="100%" summary="Navigation footer"> 58 <tr> 59 <td width="40%" align="left"><a accesskey="p" href="dbrephandledead.html">Prev</a> </td> 60 <td width="20%" align="center"> 61 <a accesskey="u" href="dbexception.html">Up</a> 62 </td> 63 <td width="40%" align="right"> <a accesskey="n" href="lock.html">Next</a></td> 64 </tr> 65 <tr> 66 <td width="40%" align="left" valign="top">DbRepHandleDeadException </td> 67 <td width="20%" align="center"> 68 <a accesskey="h" href="index.html">Home</a> 69 </td> 70 <td width="40%" align="right" valign="top"> Chapter 7. 71 The DbLock Handle 72 </td> 73 </tr> 74 </table> 75 </div> 76 </body> 77</html> 78