rapidyaml 0.15.2
parse and emit YAML, and do it fast
Loading...
Searching...
No Matches
c4::yml::ExceptionParse Struct Reference

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

#include <error.hpp>

Public Member Functions

 ExceptionParse (csubstr msg, ErrorDataParse const &errdata_) noexcept
const char * what () const noexcept override

Public Attributes

ErrorDataParse errdata_parse
ErrorDataBasic errdata_basic
 error data
char msg [RYML_ERRMSG_SIZE]
 the reported error message, without location indication.

Detailed Description

Exception thrown by the default parse error implementation.

To obtain the full error message containing context, use err_parse_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 493 of file error.hpp.

Constructor & Destructor Documentation

◆ ExceptionParse()

c4::yml::ExceptionParse::ExceptionParse ( csubstr msg,
ErrorDataParse const & errdata_ )
noexcept

Member Function Documentation

◆ what()

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

Definition at line 477 of file error.hpp.

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

Referenced by sample_error_basic(), sample_error_parse(), and sample_error_visit().

Member Data Documentation

◆ errdata_parse

ErrorDataParse c4::yml::ExceptionParse::errdata_parse

Definition at line 496 of file error.hpp.

Referenced by c4::yml::format_exc(), and sample_error_parse().

◆ errdata_basic

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

error data

Definition at line 478 of file error.hpp.

Referenced by c4::yml::format_exc(), sample_error_basic(), sample_error_parse(), and sample_error_visit().

◆ msg

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

the reported error message, without location indication.

Definition at line 479 of file error.hpp.

Referenced by ExceptionBasic(), c4::yml::ExceptionParse::ExceptionParse(), c4::yml::ExceptionVisit::ExceptionVisit(), c4::yml::format_exc(), c4::yml::format_exc(), c4::yml::format_exc(), and what().


The documentation for this struct was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/rapidyaml/checkouts/latest/src/c4/yml/error.hpp