RESTinio
Loading...
Searching...
No Matches
restinio::easy_parser::parse_error_t Class Reference

Information about parsing error. More...

#include <easy_parser.hpp>

Public Member Functions

 parse_error_t (std::size_t position, error_reason_t reason) noexcept
 Initializing constructor.
std::size_t position () const noexcept
 Get the position in the input stream where error was detected.
error_reason_t reason () const noexcept
 Get the reason of the error.

Private Attributes

std::size_t m_position
 Position in the input stream.
error_reason_t m_reason
 The reason of the error.

Detailed Description

Information about parsing error.

Since
v.0.6.1

Definition at line 93 of file easy_parser.hpp.

Constructor & Destructor Documentation

◆ parse_error_t()

restinio::easy_parser::parse_error_t::parse_error_t ( std::size_t position,
error_reason_t reason )
inlinenoexcept

Initializing constructor.

Definition at line 102 of file easy_parser.hpp.

Member Function Documentation

◆ position()

std::size_t restinio::easy_parser::parse_error_t::position ( ) const
inlinenodiscardnoexcept

Get the position in the input stream where error was detected.

Definition at line 112 of file easy_parser.hpp.

◆ reason()

error_reason_t restinio::easy_parser::parse_error_t::reason ( ) const
inlinenodiscardnoexcept

Get the reason of the error.

Definition at line 117 of file easy_parser.hpp.

Member Data Documentation

◆ m_position

std::size_t restinio::easy_parser::parse_error_t::m_position
private

Position in the input stream.

Definition at line 96 of file easy_parser.hpp.

◆ m_reason

error_reason_t restinio::easy_parser::parse_error_t::m_reason
private

The reason of the error.

Definition at line 98 of file easy_parser.hpp.


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