|
128 | 128 | <p><code>MONGOC_ERROR_QUERY_FAILURE</code></p>
|
129 | 129 | </td>
|
130 | 130 | <td>
|
131 |
| - <p><link xref="#error-api-version">Error API Version 1</link>: Server error from command or query. The server error message is in <code>message</code>.</p> |
| 131 | + <p><link xref="#error_api_version">Error API Version 1</link>: Server error from command or query. The server error message is in <code>message</code>.</p> |
132 | 132 | </td>
|
133 | 133 | </tr>
|
134 | 134 | <tr>
|
|
139 | 139 | <p><code>MONGOC_ERROR_QUERY_FAILURE</code></p>
|
140 | 140 | </td>
|
141 | 141 | <td>
|
142 |
| - <p><link xref="#error-api-version">Error API Version 2</link>: Server error from command or query. The server error message is in <code>message</code>.</p> |
| 142 | + <p><link xref="#error_api_version">Error API Version 2</link>: Server error from command or query. The server error message is in <code>message</code>.</p> |
143 | 143 | </td>
|
144 | 144 | </tr>
|
145 | 145 | <tr>
|
|
212 | 212 | <p><link href="https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err">Error code from server</link>.</p>
|
213 | 213 | </td>
|
214 | 214 | <td>
|
215 |
| - <p><link xref="#error-api-version">Error API Version 1</link>: Server error from a command. The server error message is in <code>message</code>.</p> |
| 215 | + <p><link xref="#error_api_version">Error API Version 1</link>: Server error from a command. The server error message is in <code>message</code>.</p> |
216 | 216 | </td>
|
217 | 217 | </tr>
|
218 | 218 | <tr>
|
|
223 | 223 | <p><link href="https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err">Error code from server</link>.</p>
|
224 | 224 | </td>
|
225 | 225 | <td>
|
226 |
| - <p><link xref="#error-api-version">Error API Version 2</link>: Server error from a command. The server error message is in <code>message</code>.</p> |
| 226 | + <p><link xref="#error_api_version">Error API Version 2</link>: Server error from a command. The server error message is in <code>message</code>.</p> |
227 | 227 | </td>
|
228 | 228 | </tr>
|
229 | 229 | <tr>
|
|
245 | 245 | <p><link href="https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err">Error code from server</link>.</p>
|
246 | 246 | </td>
|
247 | 247 | <td>
|
248 |
| - <p><link xref="#error-api-version">Error API Version 1</link>: Server error from <code xref="mongoc_collection_insert">mongoc_collection_insert</code>, <code xref="mongoc_collection_insert_bulk">mongoc_collection_insert_bulk</code>, <code xref="mongoc_collection_update">mongoc_collection_update</code>, or <code xref="mongoc_collection_remove">mongoc_collection_remove</code>.</p> |
| 248 | + <p><link xref="#error_api_version">Error API Version 1</link>: Server error from <code xref="mongoc_collection_insert">mongoc_collection_insert</code>, <code xref="mongoc_collection_insert_bulk">mongoc_collection_insert_bulk</code>, <code xref="mongoc_collection_update">mongoc_collection_update</code>, or <code xref="mongoc_collection_remove">mongoc_collection_remove</code>.</p> |
249 | 249 | </td>
|
250 | 250 | </tr>
|
251 | 251 | <tr>
|
|
256 | 256 | <p><link href="https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err">Error code from server</link>.</p>
|
257 | 257 | </td>
|
258 | 258 | <td>
|
259 |
| - <p><link xref="#error-api-version">Error API Version 2</link>: Server error from <code xref="mongoc_collection_insert">mongoc_collection_insert</code>, <code xref="mongoc_collection_insert_bulk">mongoc_collection_insert_bulk</code>, <code xref="mongoc_collection_update">mongoc_collection_update</code>, or <code xref="mongoc_collection_remove">mongoc_collection_remove</code>.</p> |
| 259 | + <p><link xref="#error_api_version">Error API Version 2</link>: Server error from <code xref="mongoc_collection_insert">mongoc_collection_insert</code>, <code xref="mongoc_collection_insert_bulk">mongoc_collection_insert_bulk</code>, <code xref="mongoc_collection_update">mongoc_collection_update</code>, or <code xref="mongoc_collection_remove">mongoc_collection_remove</code>.</p> |
260 | 260 | </td>
|
261 | 261 | </tr>
|
262 | 262 | <tr>
|
|
325 | 325 | </table>
|
326 | 326 | </section>
|
327 | 327 |
|
328 |
| - <section id="error-api-version"> |
| 328 | + <section id="error_api_version"> |
329 | 329 | <title>Setting the Error API Version</title>
|
330 | 330 |
|
331 | 331 | <p>The driver's error reporting began with a design flaw: when the error <em style="strong">domain</em> is <code>MONGOC_ERROR_COLLECTION</code>, <code>MONGOC_ERROR_QUERY</code>, or <code>MONGOC_ERROR_COMMAND</code>, the error <em style="strong">code</em> might originate from the server or the driver. An application cannot always know where an error originated, and therefore cannot tell what the code means.</p>
|
|
399 | 399 | <td>
|
400 | 400 | <p>
|
401 | 401 | <code xref="mongoc_collection_insert">mongoc_collection_insert</code>
|
402 |
| - </p> |
403 |
| - <p> |
404 | 402 | <code xref="mongoc_collection_insert_bulk">mongoc_collection_insert_bulk</code>
|
405 |
| - </p> |
406 |
| - <p> |
407 | 403 | <code xref="mongoc_collection_update">mongoc_collection_update</code>
|
408 |
| - </p> |
409 |
| - <p> |
410 | 404 | <code xref="mongoc_collection_remove">mongoc_collection_remove</code>
|
411 | 405 | </p>
|
412 | 406 | </td>
|
|
0 commit comments