-
Notifications
You must be signed in to change notification settings - Fork 0
Error codes
Oskari Rauta edited this page Mar 11, 2024
·
6 revisions
Error codes are not described here, they have somewhat describing names and they are numbered for better identification. When these errors are thrown, description is available from .what() function.
Errors thrown are type of JSON::exception which contains also some other useful information, in case this error happened during parsing of JSON.
- NO_ERROR = 0
- END_OF_BLOB = 1
- UNSUPPORTED_BEGIN_OF_BLOB = 2
- NULLPTR_MISREAD = 3
- BOOL_MISREAD = 4
- EXP_MISSING = 5
- ILLEGAL_NUMBER = 6
- FLOAT_OUT_OF_RANGE = 7
- INT_OUT_OF_RANGE = 8
- INVALID_UNICODE = 9
- UNSUPPORTED_ESCAPE_CHARACTER = 10
- INVALID_KEY = 11
- MISSING_TICK = 12
- MISSING_SEMICOLON = 13
- MISSING_COMMA = 14
- ELEMENT_COPY_ERROR = 101
- INVALID_ELEMENT_TYPE = 102
- ASSIGNMENT_ERROR = 103
- OBJECT_SUBSCRIPT_FAIL = 104
- ARRAY_SUBSCRIPT_FAIL = 105
- ARRAY_SUBSCRIPT_RANGE_ERROR = 106
- OBJECT_KEY_DOES_NOT_EXIST = 107
- INVALID_OBJECT_SUBSCRIPT = 108
- INVALID_ARRAY_SUBSCRIPT = 109
- STRING_CONVERSION_FAILED = 110
- FLOAT_CONVERSION_INVALID = 111
- FLOAT_CONVERSION_RANGE = 112
- FLOAT_CONVERSION_CAST = 113
- FLOAT_CONVERSION_ERROR = 114
- INT_CONVERSION_INVALID = 115
- INT_CONVERSION_RANGE = 116
- INT_CONVERSION_CAST = 117
- INT_CONVERSION_ERROR = 118
- BOOL_CONVERSION_INVALID = 119
- BOOL_CONVERSION_RANGE = 120
- BOOL_CONVERSION_CAST = 121
- BOOL_CONVERSION_ERROR = 122
- ELEMENT_CANNOT_CLEAR = 123
- ERASE_FAILED_NO_KEY = 124
- ELEMENT_CANNOT_ERASE_KEY = 125
- ERASE_FAILED_NO_INDEX = 126
- ELEMENT_CANNOT_ERASE_INDEX = 127
- APPEND_ARRAY_FAILED = 128
- INSERT_ARRAY_FAILED = 129
- APPEND_OBJECT_FAILED = 130
- INSERT_OBJECT_FAILED = 131
- FUNCTION_UNAVAILABLE_FOR_CONST = 132
Error codes below 100 are currently reserved for parsing errors exclusively.