Document MongoGridFS exception codes

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329239 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hannes Magnusson 2013-01-19 20:07:22 +00:00
parent 42871790fb
commit c0a67e0c16

View file

@ -42,6 +42,116 @@
</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>