Description of a single parsing problem.
More...
#include <jsonv/parse.hpp>
|
| problem (size_type line, size_type column, size_type character, std::string message) |
|
size_type | line () const |
| The line of input this error was encountered on. More...
|
|
size_type | column () const |
| The character index on the current line this error was encountered on. More...
|
|
size_type | character () const |
| The character index into the entire input this error was encountered on. More...
|
|
const std::string & | message () const |
| A message from the parser which has user-readable details about the encountered problem. More...
|
|
Description of a single parsing problem.
Definition at line 38 of file parse.hpp.
size_type jsonv::parse_error::problem::character |
( |
| ) |
const |
|
inline |
The character index into the entire input this error was encountered on.
Definition at line 59 of file parse.hpp.
size_type jsonv::parse_error::problem::column |
( |
| ) |
const |
|
inline |
The character index on the current line this error was encountered on.
Definition at line 53 of file parse.hpp.
size_type jsonv::parse_error::problem::line |
( |
| ) |
const |
|
inline |
The line of input this error was encountered on.
A new "line" is determined by carriage return or line feed. If you are in Windows and line breaks are two characters, the line number of the error will appear to be twice as high as you would think.
Definition at line 47 of file parse.hpp.
const std::string& jsonv::parse_error::problem::message |
( |
| ) |
const |
|
inline |
A message from the parser which has user-readable details about the encountered problem.
Definition at line 65 of file parse.hpp.
The documentation for this struct was generated from the following file: