MONGOC_CURSOR_ERROR(3)

πŸ’… MONGOC_CURSOR_ERROR(3) πŸ’…

okay so bestie, gather round β€” this one lives in libmongoc and it's literally the vibe check for your cursor πŸ’–


✨ SYNOPSIS ✨

bool
mongoc_cursor_error (mongoc_cursor_t *cursor, bson_error_t *error);

πŸŽ€ PARAMETERS πŸŽ€

  • cursor β€” a mongoc_cursor_t. the main character, obviously πŸ‘‘
  • error β€” an optional location for a bson_error_t, or NULL. optional!! like you can just not, and it's fine 🫢

🌸 DESCRIPTION 🌸

so this function checks whether an error has occurred while iterating the cursor. that's it, that's the whole gig ✨ it's giving "quick peek to see if things went sideways" energy, no cap.

πŸ’€ ERRORS πŸ’€

errors are propagated via the error parameter. so if you handed it a spot to write to, that's where the tea gets spilled πŸ“

⭐ RETURNS ⭐

  • false β€” no error has occurred, we love a smooth ride 🌈
  • true β€” an error happened, and error gets set. dramatic but informative 😭

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” iconic, honestly πŸ’œ

2009-present, MongoDB, Inc.


and that's the whole page, bestie β€” no notes πŸ’…

signing off from libmongoc version 2.5.6, dated Oct 09, 2026 β€” mwah, see you in the next manpage 🧚✨

πŸ“¦ where this page comes from