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
 
 parse_error (const char *message) noexcept
 

Detailed Description

An error encountered when parsing.

See also
parse

Definition at line 35 of file parse.hpp.

Constructor & Destructor Documentation

◆ parse_error()

jsonv::parse_error::parse_error ( const char message,
std::optional< std::size_t >  character 
)
explicitnoexcept

Create an error with the given message and optional character location.

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 48 of file parse.hpp.


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