1BSON_SET_ERROR(3) libbson BSON_SET_ERROR(3)
2
3
4
6 void
7 bson_set_error (
8 bson_error_t *error, uint32_t domain, uint32_t code, const char *format, ...)
9 BSON_GNUC_PRINTF (4, 5);
10
12 • error: A bson_error_t.
13
14 • domain: A uint32_t.
15
16 • code: A uint32_t.
17
18 • format: A printf() style format string.
19
21 This is a helper function to set the parameters of a bson_error_t. It
22 handles the case where error is NULL by doing nothing.
23
25 MongoDB, Inc
26
28 2017-present, MongoDB, Inc
29
30
31
32
331.25.1 Nov 08, 2023 BSON_SET_ERROR(3)