BSON_VECTOR_ERROR_CODE_T(3)

πŸ“¦
version 2.5.6 Β· 3 versions
, in epel 10

πŸ’… BSON_VECTOR_ERROR_CODE_T(3) πŸ’…

okay so bestie, welcome to libbson β€” this is the page for BSON error codes for BSON Binary Vector subtype operations that could fail in multiple ways. yes, multiple ways, she's complicated 😭 but we love her.


✨ SYNOPSIS ✨

like, here's the whole vibe in code, no cap:

#define BSON_ERROR_VECTOR 4

typedef enum {
  BSON_VECTOR_ERROR_ARRAY_ELEMENT_TYPE = 1,
  BSON_VECTOR_ERROR_ARRAY_ELEMENT_VALUE = 2,
  BSON_VECTOR_ERROR_ARRAY_KEY = 3,
  BSON_VECTOR_ERROR_MAX_SIZE = 4,
} bson_vector_error_code_t;

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the error code values in bson_vector_error_code_t apply to bson_error_t values with a category of BSON_ERROR_CATEGORY and a domain of BSON_ERROR_VECTOR. that's the whole map, bestie β€” memorize it, it's giving cheat sheet πŸ’œ

  • BSON_VECTOR_ERROR_ARRAY_ELEMENT_TYPE β€” an element showed up with an incorrect type πŸ™ˆ location and type details live in the message, so read it, don't skip it.
  • BSON_VECTOR_ERROR_ARRAY_ELEMENT_VALUE β€” an element showed up with an out-of-range value πŸ’€ location and value details are in the message. yes, both. she's thorough.
  • BSON_VECTOR_ERROR_ARRAY_KEY β€” an input BSON Array did not contain the expected numeric key value 😭 expected and actual keys are in the message, so you can see exactly what went wrong.
  • BSON_VECTOR_ERROR_MAX_SIZE β€” the BSON maximum document size would be exceeded πŸ”₯ this one is equivalent to a failure from bson_append_* functions that do not return an error. lowkey the important one, ngl.

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” icons only.


2009-present, MongoDB, Inc.


alright bestie that's the whole page, you ate that 🫢 stay hydrated, go handle your error codes, and remember: libbson version 2.5.6, dated Oct 09, 2026 β€” periodt πŸ’–βœ¨

πŸ“¦ where this page comes from