<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ --> 

<phpdoc:classref xml:id="class.mongodb-driver-exception-runtimeexception" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">

 <title>The MongoDB\Driver\Exception\RuntimeException class</title>
 <titleabbrev>MongoDB\Driver\Exception\RuntimeException</titleabbrev>

 <partintro>

<!-- {{{ MongoDB\Driver\Exception\RuntimeException intro -->
  <section xml:id="mongodb-driver-exception-runtimeexception.intro">
   &reftitle.intro;
   <para>
    Thrown when the driver encounters a runtime error (e.g. internal error from
    <link xlink:href="&url.mongodb.libmongoc;">libmongoc</link>).
   </para>
  </section>
<!-- }}} -->

  <section xml:id="mongodb-driver-exception-runtimeexception.synopsis">
   &reftitle.classsynopsis;

<!-- {{{ Synopsis -->
   <classsynopsis>
    <ooclass><classname>MongoDB\Driver\Exception\RuntimeException</classname></ooclass>

<!-- {{{ Class synopsis -->
    <classsynopsisinfo>
     <ooclass>
      <classname>MongoDB\Driver\Exception\RuntimeException</classname>
     </ooclass>

     <ooclass>
      <modifier>extends</modifier>
      <classname>RuntimeException</classname>
     </ooclass>

     <oointerface>
      <interfacename>MongoDB\Driver\Exception\Exception</interfacename>
     </oointerface>
    </classsynopsisinfo>
<!-- }}} -->
    <classsynopsisinfo role="comment">&Properties;</classsynopsisinfo>
    <fieldsynopsis>
     <modifier>protected</modifier>
     <type class="union"><type>array</type><type>null</type></type>
     <varname linkend="mongodb-driver-exception-runtimeexception.props.errorlabels">errorLabels</varname>
    </fieldsynopsis>

    <classsynopsisinfo role="comment">&InheritedProperties;</classsynopsisinfo>
    <!-- <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('runtimeexception.synopsis')/descendant::db:fieldsynopsis)" /> -->
    <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('exception.synopsis')/descendant::db:fieldsynopsis)" />

    <classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
    <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.mongodb-driver-exception-runtimeexception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])" />

    <classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo>
    <!-- <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.runtimeexception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])" /> -->
    <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])" />

   </classsynopsis>
<!-- }}} -->

  </section>

<!-- {{{ MongoDB\Driver\Exception\RuntimeException properties -->
  <section xml:id="mongodb-driver-exception-runtimeexception.props">
   &reftitle.properties;
   <variablelist>
    <varlistentry xml:id="mongodb-driver-exception-runtimeexception.props.errorlabels">
     <term><varname>errorLabels</varname></term>
     <listitem>
      <para>
       Contains an array of error labels to go with an exception. For example,
       error labels can be used to detect whether a transaction can be retried
       safely if the <literal>TransientTransactionError</literal> label is
       present. The existence of a specific error label should be tested for
       with the
       <methodname>MongoDB\Driver\Exception\RuntimeException::hasErrorLabel</methodname>,
       instead of interpreting this <literal>errorLabels</literal> property
       manually.
      </para>
     </listitem>
    </varlistentry>
   </variablelist>
  </section>
<!-- }}} -->

  <section role="changelog">
   &reftitle.changelog;
   <para>
    <informaltable>
     <tgroup cols="2">
      <thead>
       <row>
        <entry>&Version;</entry>
        <entry>&Description;</entry>
       </row>
      </thead>
      <tbody>
       <row>
        <entry>PECL mongodb 1.6.0</entry>
        <entry>
         <para>
          The
          <methodname>MongoDB\Driver\Exception\RuntimeException::hasErrorLabel</methodname>
          method and
          <link linkend="mongodb-driver-exception-runtimeexception.props.errorlabels">MongoDB\Driver\Exception\RuntimeException::errorLabels</link>
          property have been added.
         </para>
        </entry>
       </row>
      </tbody>
     </tgroup>
    </informaltable>
   </para>
  </section>

 </partintro>

 &reference.mongodb.mongodb.driver.exception.entities.runtimeexception;

</phpdoc:classref>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
