OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::core::metadata::ParseError Class Reference

Exception type thrown when parsing fails. More...

#include <parser.hpp>

Inheritance diagram for oxy::core::metadata::ParseError:

Public Member Functions

 ParseError (std::size_t pos, std::string message)
 Construct a ParseError with position and message.
const std::string & message () const noexcept
 Raw message accessor.
std::size_t pos () const noexcept
 Position accessor.
const char * what () const noexcept override
 Short description combining position and message.

Detailed Description

Exception type thrown when parsing fails.

Carries the 0-based position in the trimmed input and a human-friendly message.

Constructor & Destructor Documentation

◆ ParseError()

oxy::core::metadata::ParseError::ParseError ( std::size_t pos,
std::string message )
inline

Construct a ParseError with position and message.

Parameters
pos0-based position in the trimmed input where the error was detected.
messageHuman-friendly error message.

References message(), and pos().