1MONGOC_CHANGE_STREAM_ERROR_DOCUMENT(l3i)bmonMgOoNcGOC_CHANGE_STREAM_ERROR_DOCUMENT(3)
2
3
4
6 bool
7 mongoc_change_stream_error_document (mongoc_change_stream_t *stream,
8 bson_error_t *err,
9 const bson_t **reply);
10
11 Checks if an error has occurred when creating or iterating over a
12 change stream.
13
14 Similar to mongoc_cursor_error_document() if the error has occurred
15 client-side then the reply will be set to an empty BSON document. If
16 the error occurred server-side, reply is set to the server's reply doc‐
17 ument.
18
20 • stream: A mongoc_change_stream_t.
21
22 • err: An optional location for a bson_error_t or NULL.
23
24 • reply: A location for a bson_t.
25
27 A boolean indicating if there was an error.
28
30 MongoDB, Inc
31
33 2017-present, MongoDB, Inc
34
35
36
37
381.25.1 Nov 08,M2O0N2G3OC_CHANGE_STREAM_ERROR_DOCUMENT(3)