...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 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. |
|
The parser encountered an exception and must be reset. |
|
not a number |
|
number cast is not exact |
|
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 |
Convenience header <boost/json.hpp>