php-doc-en/reference/mongo/mongoexception.xml

100 lines
2.4 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<phpdoc:classref xml:id="class.mongoexception" 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 MongoException class</title>
<titleabbrev>MongoException</titleabbrev>
<partintro>
<!-- {{{ MongoException intro -->
<section xml:id="mongoexception.intro">
&reftitle.intro;
<para>
Default Mongo exception.
</para>
<para>
This covers a bunch of different error conditions that may eventually be
moved to more specific exceptions, but will always extend
<classname>MongoException</classname>.
</para>
<itemizedlist>
<listitem>
<para>
<literal>non-utf8 string</literal>
</para>
<para>
This error occurs if you attempt to send a non-utf8 string to the
database. All strings going into the database should be UTF8. See php.ini
options for the transition option of quieting this exception.
</para>
</listitem>
<listitem>
<para>
<literal>invalid regex</literal>
</para>
<para>
The regex you passed in does not match the form /regex/flags.
</para>
</listitem>
<listitem>
<para>
<literal>The MongoSomething object has not been correctly initialized by its constructor</literal>
</para>
<para>
Probably your Mongo object is not connected to a database server.
</para>
</listitem>
</itemizedlist>
</section>
<!-- }}} -->
<section xml:id="mongoexception.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis>
<ooclass><classname>MongoException</classname></ooclass>
<!-- {{{ Class synopsis -->
<classsynopsisinfo>
<ooclass>
<modifier>extends</modifier>
<classname>Exception</classname>
</ooclass>
</classsynopsisinfo>
<!-- }}} -->
</classsynopsis>
<!-- }}} -->
</section>
</partintro>
</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
-->