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