|
OXY API 1.0
OXY API Library Documentation
|
Exception type thrown when parsing fails. More...
#include <parser.hpp>
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. | |
Exception type thrown when parsing fails.
Carries the 0-based position in the trimmed input and a human-friendly message.
|
inline |
Construct a ParseError with position and message.
| pos | 0-based position in the trimmed input where the error was detected. |
| message | Human-friendly error message. |