rapidyaml  0.12.1
parse and emit YAML, and do it fast
c4::yml::ExceptionVisit Struct Reference

Exception thrown by the default visit error implementation. More...

#include <error.hpp>

Inheritance diagram for c4::yml::ExceptionVisit:
c4::yml::ExceptionBasic

Public Member Functions

 ExceptionVisit (csubstr msg, ErrorDataVisit const &errdata_) noexcept
 
const char * what () const noexcept override
 

Public Attributes

ErrorDataVisit errdata_visit
 
ErrorDataBasic errdata_basic
 error data More...
 
char msg [RYML_ERRMSG_SIZE]
 the reported error message, without location indication. More...
 

Detailed Description

Exception thrown by the default visit error implementation.

To obtain the full error message containing context, use err_visit_format(), or the helper format_exc().

Note
This exception derives from ExceptionBasic and can be catched using either type.
Available only if RYML_DEFAULT_CALLBACK_USES_EXCEPTIONS is defined, and RYML_NO_DEFAULT_CALLBACKS is NOT defined.

Definition at line 511 of file error.hpp.

Constructor & Destructor Documentation

◆ ExceptionVisit()

c4::yml::ExceptionVisit::ExceptionVisit ( csubstr  msg,
ErrorDataVisit const &  errdata_ 
)
noexcept

Member Function Documentation

◆ what()

const char* c4::yml::ExceptionBasic::what ( ) const
inlineoverridenoexceptinherited

Definition at line 478 of file error.hpp.

478 { return msg; }
char msg[RYML_ERRMSG_SIZE]
the reported error message, without location indication.
Definition: error.hpp:480

Member Data Documentation

◆ errdata_visit

ErrorDataVisit c4::yml::ExceptionVisit::errdata_visit

Definition at line 514 of file error.hpp.

◆ errdata_basic

ErrorDataBasic c4::yml::ExceptionBasic::errdata_basic
inherited

error data

Definition at line 479 of file error.hpp.

◆ msg

char c4::yml::ExceptionBasic::msg[RYML_ERRMSG_SIZE]
inherited

the reported error message, without location indication.

Definition at line 480 of file error.hpp.


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