JSON Voorhees
Killer JSON for C++
Loading...
Searching...
No Matches
jsonv::parse_error Class Reference

An error encountered when parsing. More...

#include <jsonv/parse.hpp>

+ Inheritance diagram for jsonv::parse_error:
+ Collaboration diagram for jsonv::parse_error:

Public Member Functions

const std::optional< std::size_t > & character () const
 Get the character location of the encountered error.
 
 parse_error (const char *message, std::optional< std::size_t > character) noexcept
 Create an error with the given message and optional character location.
 
 parse_error (const char *message) noexcept
 Create an error with the given message and optional character location.
 

Detailed Description

An error encountered when parsing.

See also
parse

Definition at line 28 of file parse.hpp.

Member Function Documentation

◆ character()

const std::optional< std::size_t > & jsonv::parse_error::character ( ) const
inline

Get the character location of the encountered error.

Definition at line 43 of file parse.hpp.


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