@@ -77,8 +77,7 @@ MongoDB\\Exception\\UnsupportedException
77
77
unintended document being deleted.
78
78
79
79
This class extends the library's :phpclass:`RuntimeException
80
- <MongoDB\\Exception\\RuntimeException>` class and implements the
81
- library's :phpclass:`Exception <MongoDB\\Exception\\Exception>` interface.
80
+ <MongoDB\\Exception\\RuntimeException>` class.
82
81
83
82
.. note::
84
83
@@ -89,6 +88,37 @@ MongoDB\\Exception\\UnsupportedException
89
88
90
89
----
91
90
91
+ MongoDB\\GridFS\\Exception\\CorruptFileException
92
+ ----------------------------------------
93
+
94
+ .. phpclass:: MongoDB\\GridFS\\Exception\\CorruptFileException
95
+
96
+ This exception is thrown if a GridFS file's metadata or chunk documents
97
+ contain unexpected or invalid data.
98
+
99
+ When selecting a GridFS file, this may be thrown if a metadata field has an
100
+ incorrect type or its value is out of range (e.g. negative ``length``). When
101
+ reading a GridFS file, this may be thrown if a chunk's index is out of
102
+ sequence or its binary data's length out of range.
103
+
104
+ This class extends the library's :phpclass:`RuntimeException
105
+ <MongoDB\\Exception\\RuntimeException>` class.
106
+
107
+ ----
108
+
109
+ MongoDB\\GridFS\\Exception\\FileNotFoundException
110
+ ----------------------------------------
111
+
112
+ .. phpclass:: MongoDB\\GridFS\\Exception\\FileNotFoundException
113
+
114
+ This exception is thrown if no GridFS file was found for the selection
115
+ criteria (e.g. ``id``, ``filename``).
116
+
117
+ This class extends the library's :phpclass:`RuntimeException
118
+ <MongoDB\\Exception\\RuntimeException>` class.
119
+
120
+ ----
121
+
92
122
MongoDB\\Exception\\Exception
93
123
-----------------------------
94
124
0 commit comments