MONGOC_BULKWRITEEXCEPTION_ERROR(3)
π MONGOC_BULKWRITEEXCEPTION_ERROR(3) π
okay so bestie, this one lives in libmongoc β yes, the C driver for MongoDB, we love her β and it's a tiny little function that's basically a vibe check on your bulk write exception π«Ά
β¨ SYNOPSIS β¨
bool
mongoc_bulkwriteexception_error (const mongoc_bulkwriteexception_t *self, bson_error_t *error);
like. that's it. that's the whole signature. two args, one bool out, iconic behavior π
πΈ DESCRIPTION πΈ
okay so here's the tea π β you call mongoc_bulkwriteexception_error() on your mongoc_bulkwriteexception_t *self and it tells you whether there was a top-level error.
- if there was a top-level error β it returns
trueand setserrorfor you π - if there wasn't β it returns
falseand you can go about your day β¨
literally that's the whole deal. no cap. the bson_error_t *error out-param is only getting filled in when the answer is true, so don't be reading uninitialized error values and then @-ing me about it ππ
ngl, "top-level" is the key word here β this is about the top-level error specifically, not every nested little thing inside the exception. the manpage is very clear and so am I π
π¦ AUTHOR π¦
MongoDB, Inc β yes, the MongoDB, Inc. main character energy fr fr π₯
π COPYRIGHT π
2009-present, MongoDB, Inc. β that's a long reign, we stan a legacy π
and that's the whole page, bestie!! π§β¨ this little beauty is from version 2.5.6, dated Oct 09, and it's giving "small function, big responsibility." go forth and check ya errors ππ¦πΈ
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms