...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Error codes returned by JSON operations.
Defined in header <boost/json/error.hpp>
enum class error;
Name |
Description |
---|---|
|
syntax error |
|
extra data |
|
incomplete JSON |
|
exponent too large |
|
too deep |
|
illegal leading surrogate |
|
illegal trailing surrogate |
|
expected hex digit |
|
expected utf16 escape |
|
An object contains too many elements. |
|
An array contains too many elements. |
|
A key is too large. |
|
A string is too large. |
|
A number is too large. |
|
error occured when trying to read input |
|
An exception was thrown during operation. |
|
A requested element is outside of container's range. |
|
test failure |
|
missing slash character before token reference |
|
invalid escape sequence |
|
token should be a number but cannot be parsed as such |
|
current value is neither an object nor an array |
|
current value does not contain referenced value |
|
token cannot be represented by std::size_t |
|
past-the-end index is not supported |
|
JSON number was expected during conversion. |
|
number cast is not exact |
|
JSON null was expected during conversion. |
|
JSON bool was expected during conversion. |
|
JSON array was expected during conversion. |
|
JSON object was expected during conversion. |
|
JSON string was expected during conversion. |
|
std::int64_t was expected during conversion |
|
std::uint64_t was expected during conversion |
|
|
|
JSON integer was expected during conversion. |
|
source composite has size incompatible with target |
|
none of the possible conversions were successful |
|
the key does not correspond to a known name |
Convenience header <boost/json.hpp>