MONGOC_GRIDFS...T_STREAM_ERROR(3)

πŸ’… MONGOC_GRIDFS...T_STREAM_ERROR(3) ✨

okay bestie, welcome to the libmongoc corner of the manual β€” this one's a tiny lil function and honestly? she's giving quiet luxury. no drama, just vibes and error checking 🫢


✨ SYNOPSIS ✨

bool
mongoc_gridfs_bucket_stream_error (mongoc_stream_t *stream,
                                   bson_error_t *error);

that's the whole thing. one function, two args, returns a bool. slay πŸ’š


πŸŽ€ PARAMETERS πŸŽ€

  • stream β€” a mongoc_stream_t that you got from mongoc_gridfs_bucket_open_upload_stream(), mongoc_gridfs_bucket_open_upload_stream_with_id(), or mongoc_gridfs_bucket_open_download_stream(). like, it has to be one of those three, iykyk. don't just hand her any random stream and expect her to know what's up πŸ’€
  • error β€” a bson_error_t that receives the possible error. she's the vessel. the messenger. the error girlie if you will πŸ“¬

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically: this function retrieves an error for a GridFS stream, if one exists. that's it. that's the whole function. sometimes there's an error, sometimes there isn't, and she will let you know 🌸


πŸ‘‘ RETURNS πŸ‘‘

  • True if an error occurred on the stream β€” and it sets error for you, so you can go read the tea β˜•
  • False otherwise. no error, no problem, we're so back ✨

πŸ’– SEE ALSO πŸ’–

  • mongoc_gridfs_bucket_open_upload_stream()
  • mongoc_gridfs_bucket_open_upload_stream_with_id()
  • mongoc_gridfs_bucket_open_download_stream()

like the stream girls. the ones that made your stream in the first place. go read those too, they're literally in the same friend group πŸ’…


🌈 AUTHOR 🌈

MongoDB, Inc β€” yes ma'am, the whole company πŸ‘‘


2009-present, MongoDB, Inc. β€” iconic behavior, honestly πŸŽ€


ok that's the whole page bestie. short, sweet, and to the point. go check your error var and live ur truth πŸ’œ

✧ο½₯゚: ✧ο½₯゚: this has been libmongoc version 2.5.6, dated Oct 09, 2026 β€” love u, mean it, bye πŸ§šπŸ’–

πŸ“¦ where this page comes from