JSON Voorhees
Killer JSON for C++
jsonv::parse_error Class Reference

An error encountered when parsing. More...

#include <jsonv/parse.hpp>

+ Inheritance diagram for jsonv::parse_error:

Classes

struct  problem
 Description of a single parsing problem. More...
 

Public Types

typedef std::size_t size_type
 
typedef std::deque< problemproblem_list
 

Public Member Functions

 parse_error (problem_list, value partial_result)
 
const problem_list & problems () const
 The list of problems which ultimately contributed to this parse_error. More...
 
const valuepartial_result () const
 Get the partial result of parsing. More...
 

Detailed Description

An error encountered when parsing.

See also
parse

Definition at line 31 of file parse.hpp.

Member Function Documentation

const value& jsonv::parse_error::partial_result ( ) const

Get the partial result of parsing.

There is no guarantee this value even resembles the input JSON as the input JSON was malformed.

const problem_list& jsonv::parse_error::problems ( ) const

The list of problems which ultimately contributed to this parse_error.

There will always be at least one problem in this list.


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