Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-release > by-pkgid > a00abf5f94bf470fd4cc9e10b2d135e0 > files > 752

lib64db4.8-devel-4.8.26-1mdv2010.1.x86_64.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Chapter 29.  Dbstl Exception Classes</title>
    <link rel="stylesheet" href="apiReference.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
    <link rel="start" href="index.html" title="Berkeley DB C++ Standard Template Library API Reference" />
    <link rel="up" href="index.html" title="Berkeley DB C++ Standard Template Library API Reference" />
    <link rel="prev" href="stlReadModifyWriteOptionno_read_modify_write.html" title="no_read_modify_write" />
    <link rel="next" href="DbstlException.html" title="Chapter 30.  DbstlException" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">Chapter 29. 
 Dbstl Exception Classes  </th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="stlReadModifyWriteOptionno_read_modify_write.html">Prev</a> </td>
          <th width="60%" align="center"> </th>
          <td width="20%" align="right"> <a accesskey="n" href="DbstlException.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="chapter" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h2 class="title"><a id="Exception_classes_group"></a>Chapter 29. 
 Dbstl Exception Classes  </h2>
          </div>
        </div>
      </div>
      <p>dbstl throws several types of exceptions on several kinds of errors, the exception classes form a class hiarachy. </p>
      <p>First, there is the <a class="link" href="DbstlException.html" title="Chapter 30.  DbstlException">DbstlException</a>
, which is the base class for all types of dbstl specific concrete exception classes. <a class="link" href="DbstlException.html" title="Chapter 30.  DbstlException">DbstlException</a>
 inherits from the class DbException of Berkeley DB C++ API. Since DbException class inherits from C++ STL exception base class std::exception, you can make use of all Berkeley DB C++ and dbstl API exceptions in the same way you use the C++ std::exception class.</p>
      <p>Besides exceptions of <a class="link" href="DbstlException.html" title="Chapter 30.  DbstlException">DbstlException</a>
 and its subclasses, dbstl may also throw exceptions of DbException and its subclasses, which happens when a Berkeley DB call failed. So you should use the same way you catch Berkeley DB C++ API exceptions when you want to catch exceptions throw by Berkeley DB operations.</p>
      <p>When an exception occurs, dbstl initialize an local exception object on the stack and throws the exception object, so you should catch an exception like this:</p>
      <p>try { dbstl operations } catch(DbstlException ex){ Exception handling throw ex; // Optionally throw ex again } </p>
      <h4><a id="id1574255"></a> Public Members </h4>
      <div class="informaltable">
        <table border="1" width="80%">
          <colgroup>
            <col />
            <col />
          </colgroup>
          <thead>
            <tr>
              <th>Member</th>
              <th>Description</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>
<a class="link" href="DbstlException.html" title="Chapter 30.  DbstlException">
DbstlException</a>
</td>
              <td>
DbstlException</td>
            </tr>
            <tr>
              <td>
<a class="link" href="NotEnoughMemoryException.html" title="Chapter 35.  NotEnoughMemoryException">
NotEnoughMemoryException</a>
</td>
              <td>
NotEnoughMemoryException</td>
            </tr>
            <tr>
              <td>
<a class="link" href="InvalidIteratorException.html" title="Chapter 37.  InvalidIteratorException">
InvalidIteratorException</a>
</td>
              <td>
InvalidIteratorException</td>
            </tr>
            <tr>
              <td>
<a class="link" href="InvalidCursorException.html" title="Chapter 33.  InvalidCursorException">
InvalidCursorException</a>
</td>
              <td>
InvalidCursorException</td>
            </tr>
            <tr>
              <td>
<a class="link" href="InvalidDbtException.html" title="Chapter 31.  InvalidDbtException">
InvalidDbtException</a>
</td>
              <td>
InvalidDbtException</td>
            </tr>
            <tr>
              <td>
<a class="link" href="FailedAssertionException.html" title="Chapter 32.  FailedAssertionException">
FailedAssertionException</a>
</td>
              <td>
FailedAssertionException</td>
            </tr>
            <tr>
              <td>
<a class="link" href="NoSuchKeyException.html" title="Chapter 34.  NoSuchKeyException">
NoSuchKeyException</a>
</td>
              <td>
NoSuchKeyException</td>
            </tr>
            <tr>
              <td>
<a class="link" href="InvalidArgumentException.html" title="Chapter 39.  InvalidArgumentException">
InvalidArgumentException</a>
</td>
              <td>
InvalidArgumentException</td>
            </tr>
            <tr>
              <td>
<a class="link" href="NotSupportedException.html" title="Chapter 36.  NotSupportedException">
NotSupportedException</a>
</td>
              <td>
NotSupportedException</td>
            </tr>
            <tr>
              <td>
<a class="link" href="InvalidFunctionCall.html" title="Chapter 38.  InvalidFunctionCall">
InvalidFunctionCall</a>
</td>
              <td>
InvalidFunctionCall</td>
            </tr>
          </tbody>
        </table>
      </div>
      <h4><a id="id1574782"></a>
Group</h4>
      <p>
None</p>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="stlReadModifyWriteOptionno_read_modify_write.html">Prev</a> </td>
          <td width="20%" align="center"> </td>
          <td width="40%" align="right"> <a accesskey="n" href="DbstlException.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">
no_read_modify_write
 </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> Chapter 30. 
 DbstlException  </td>
        </tr>
      </table>
    </div>
  </body>
</html>