@@ -77,8 +77,7 @@ MongoDB\\Exception\\UnsupportedException
7777 unintended document being deleted.
7878
7979 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.
8281
8382 .. note::
8483
@@ -89,6 +88,37 @@ MongoDB\\Exception\\UnsupportedException
8988
9089----
9190
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+
92122MongoDB\\Exception\\Exception
93123-----------------------------
94124
0 commit comments