Various kinds of parse and IO errors. Contains contextual token and source location if parse error. More...
#include <djson/error.hpp>
Public Types | |
| enum class | Type : std::int8_t { Unknown , UnrecognizedToken , MissingClosingQuote , InvalidNumber , InvalidEscape , UnexpectedToken , UnexpectedComment , UnexpectedEof , MissingKey , MissingColon , MissingBrace , MissingBracket , MissingEndComment , IoError , UnsupportedFeature , COUNT_ } |
Public Attributes | |
| Type | type {Type::Unknown} |
| std::string | token {} |
| SrcLoc | src_loc {} |
Various kinds of parse and IO errors. Contains contextual token and source location if parse error.
|
strong |
| SrcLoc dj::Error::src_loc {} |
| std::string dj::Error::token {} |
| Type dj::Error::type {Type::Unknown} |