rapidyaml  0.8.0
parse and emit YAML, and do it fast
sample::ErrorHandlerExample Struct Reference

this is an example error handler, required for some of the quickstart examples. More...

Inheritance diagram for sample::ErrorHandlerExample:
sample::ScopedErrorHandlerExample

Public Member Functions

ryml::Callbacks callbacks ()
 a helper to create the Callbacks object with the custom error handler More...
 
void on_error (const char *msg, size_t len, ryml::Location loc)
 this is the where the callback implementation goes. More...
 
template<class Fn >
bool check_error_occurs (Fn &&fn) const
 
template<class Fn >
bool check_assertion_occurs (Fn &&fn) const
 
void check_effect (bool committed) const
 
 ErrorHandlerExample ()
 

Static Public Member Functions

static void s_error (const char *msg, size_t len, ryml::Location loc, void *this_)
 

Public Attributes

ryml::Callbacks defaults
 

Detailed Description

this is an example error handler, required for some of the quickstart examples.

Definition at line 242 of file quickstart.cpp.


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