BSON_VECTOR_ERROR_CODE_T(3)
π 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 frombson_append_*functions that do not return an error. lowkey the important one, ngl.
π AUTHOR π
MongoDB, Inc β icons only.
π COPYRIGHT π
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
- epel 10: libbson-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