djson v3.1.3
JSON parser
 
Loading...
Searching...
No Matches
dj::Error Struct Reference

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 {}
 

Detailed Description

Various kinds of parse and IO errors. Contains contextual token and source location if parse error.

Member Enumeration Documentation

◆ Type

enum class dj::Error::Type : std::int8_t
strong
Enumerator
Unknown 
UnrecognizedToken 
MissingClosingQuote 
InvalidNumber 
InvalidEscape 
UnexpectedToken 
UnexpectedComment 
UnexpectedEof 
MissingKey 
MissingColon 
MissingBrace 
MissingBracket 
MissingEndComment 
IoError 
UnsupportedFeature 
COUNT_ 

Member Data Documentation

◆ src_loc

SrcLoc dj::Error::src_loc {}

◆ token

std::string dj::Error::token {}

◆ type

Type dj::Error::type {Type::Unknown}

The documentation for this struct was generated from the following file: