This commit is contained in:
nlohmann
2026-07-28 09:15:06 +00:00
parent 0606809490
commit 04c29e90c4
259 changed files with 543 additions and 508 deletions
File diff suppressed because one or more lines are too long
+14
View File
@@ -1031,6 +1031,20 @@ Note
This exception was added in version 3.13.0. Before that, this situation hit an internal assertion (aborting the program in debug builds) or was silently ignored when assertions were disabled.
### json.exception.out_of_range.412
BSON stores the length of documents, arrays, strings, and binary values in a signed 32-bit integer. This exception is thrown when a value is too large to be described by such a length field.
Example message
```
BSON length 2147483661 exceeds maximum of 2147483647
```
Note
This exception was added in version 3.13.0. Before that, the length was silently truncated, and [`to_bson`](https://json.nlohmann.me/api/basic_json/to_bson/index.md) produced documents with negative length prefixes that [`from_bson`](https://json.nlohmann.me/api/basic_json/from_bson/index.md) rejected.
## Further exceptions
This exception is thrown in case of errors that cannot be classified with the other exception types.