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

<!-- $Revision: 329239 $ -->
<phpdoc:classref xml:id="class.mongogridfsexception" 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 MongoGridFSException class</title>
 <titleabbrev>MongoGridFSException</titleabbrev>

 <partintro>

  <!-- {{{ Mongogridfsexception intro -->
  <section xml:id="mongogridfsexception.intro">
   &reftitle.intro;
   <para>
    Thrown when there are errors reading or writing files
    to or from the database.
   </para>
  </section>
  <!-- }}} -->

  <section xml:id="mongogridfsexception.synopsis">
   &reftitle.classsynopsis;

   <!-- {{{ Synopsis -->
   <classsynopsis>
    <ooclass><classname>MongoGridFSException</classname></ooclass>

    <!-- {{{ Class synopsis -->
    <classsynopsisinfo>
     <ooclass>
      <classname>MongoGridFSException</classname>
     </ooclass>
     <ooclass>
      <modifier>extends</modifier>
      <classname>MongoException</classname>
     </ooclass>
    </classsynopsisinfo>
    <!-- }}} -->
    
   </classsynopsis>
   <!-- }}} -->

  </section>

  <section xml:id="mongogridfsexception.error-codes">
  <title>Error codes</title>
  <para>
   <table>
    <title><classname>MongoGridFSException</classname> error codes</title>
    <tgroup cols="4">
     <thead>
      <row>
       <entry>Code</entry>
       <entry>Message</entry>
       <entry>Reason</entry>
      </row>
     </thead>
     <tbody>
      <row>
       <entry>3</entry>
       <entry>Could not open file <varname>$filename</varname></entry>
       <entry>Attempting to store an invalid file, such as directory</entry>
      </row>
      <row>
       <entry>4</entry>
       <entry>File <varname>$filename</varname> is too large: <varname>$filesize</varname> bytes</entry>
       <entry>Maximum filesize in GridFS is 4GB</entry>
      </row>
      <row>
       <entry>5</entry>
       <entry>could not find filehandle</entry>
       <entry>Resource doesn't have a filehandle</entry>
      </row>
      <row>
       <entry>6</entry>
       <entry>no file is associate with this filehandle</entry>
       <entry>Resource isn't a file resource</entry>
      </row>
      <row>
       <entry>7</entry>
       <entry>error setting up file: <varname>$filename</varname>s</entry>
       <entry>Could not open file for reading</entry>
      </row>
      <row>
       <entry>9</entry>
       <entry>error reading file <varname>$filename</varname>s</entry>
       <entry>Failed reading file</entry>
      </row>
      <row>
       <entry>10</entry>
       <entry>error reading filehandle</entry>
       <entry>Failed reading from a resource</entry>
      </row>
      <row>
       <entry>11</entry>
       <entry>could not find uploaded file %s</entry>
       <entry>Filename doesn't seem to be uploaded file</entry>
      </row>
      <row>
       <entry>12</entry>
       <entry>Couldn't find tmp_name in the $_FILES array. Are you sure the upload worked?</entry>
       <entry>Uploaded filename probably failed</entry>
      </row>
      <row>
       <entry>13</entry>
       <entry>tmp_name was not a string or an array</entry>
       <entry>Invalid filename given</entry>
      </row>
      <row>
       <entry>14</entry>
       <entry>couldn't find file size</entry>
       <entry>The <varname>length</varname> property is missing</entry>
      </row>
      <row>
       <entry>15</entry>
       <entry>Cannot find filename</entry>
       <entry>No filename provided, and no <varname>filename</varname> property set</entry>
      </row>
      <row>
       <entry>16</entry>
       <entry>could not open destination file %s</entry>
       <entry>Destination filename not writable</entry>
      </row>
      <row>
       <entry>17</entry>
       <entry>error reading chunk of file</entry>
       <entry>Chunk corruption</entry>
      </row>
      <row>
       <entry>18</entry>
       <entry>couldn't create a php_stream</entry>
       <entry>Couldn't create a stream resource</entry>
      </row>
      <row>
       <entry>19</entry>
       <entry>couldn't find <varname>property</varname></entry>
       <entry>Chunk corruption</entry>
      </row>
      <row>
       <entry>20</entry>
       <entry>chunk <varname>number</varname> has wrong size (<varname>size</varname>) when the max is <varname>maxchunksize</varname></entry>
       <entry>Chunk larger then expected</entry>
      </row>
      <row>
       <entry>21</entry>
       <entry>chunk has wrong format</entry>
       <entry>Chunk corruption</entry>
      </row>
     </tbody>
    </tgroup>
   </table>
   </para>
  </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
-->
