|
rapidyaml 0.15.2
parse and emit YAML, and do it fast
|
Functions | |
| void | sample_error_handler () |
| set custom error handlers | |
| void | sample_error_basic () |
| handler for basic errors, and obtain a full error message with basic context | |
| void | sample_error_parse () |
| handler for parse errors, and obtain a full error message with parse context | |
| void | sample_error_visit () |
| handler for visit errors, and obtain a full error message with visit context | |
| void | sample_error_visit_location () |
| obtaining the YAML location from a visit error | |
| void sample_error_handler | ( | ) |
set custom error handlers
demonstrates how to set a custom error handler for ryml
Definition at line 6355 of file quickstart.cpp.
Referenced by main().
| void sample_error_basic | ( | ) |
handler for basic errors, and obtain a full error message with basic context
Definition at line 6376 of file quickstart.cpp.
Referenced by main().
| void sample_error_parse | ( | ) |
handler for parse errors, and obtain a full error message with parse context
Definition at line 6405 of file quickstart.cpp.
Referenced by main().
| void sample_error_visit | ( | ) |
handler for visit errors, and obtain a full error message with visit context
Visit errors happen when an error is triggered while reading from a node.
Definition at line 6557 of file quickstart.cpp.
Referenced by main().
| void sample_error_visit_location | ( | ) |
obtaining the YAML location from a visit error
It is possible to obtain the YAML location from a visit error: when the tree is obtained from parsing YAML, the messages may be enriched by using a parser set to track the locations.
See sample_location_tracking() for more details on how to use locations.
Definition at line 6661 of file quickstart.cpp.
Referenced by main().