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

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

#include <error.hpp>

Public Member Functions

 ExceptionBasic (csubstr msg, ErrorDataBasic const &errdata_) noexcept
const char * what () const noexcept override

Public Attributes

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

Detailed Description

Exception thrown by the default basic error implementation.

To obtain the full error message, use err_basic_format(), or the helper format_exc().

Note
Available only if RYML_DEFAULT_CALLBACK_USES_EXCEPTIONS is defined, and RYML_NO_DEFAULT_CALLBACKS is NOT defined.

Definition at line 477 of file error.hpp.

Constructor & Destructor Documentation

◆ ExceptionBasic()

c4::yml::ExceptionBasic::ExceptionBasic ( csubstr msg,
ErrorDataBasic const & errdata_ )
noexcept

Member Function Documentation

◆ what()

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

Definition at line 480 of file error.hpp.

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

Member Data Documentation

◆ errdata_basic

ErrorDataBasic c4::yml::ExceptionBasic::errdata_basic

error data

Definition at line 481 of file error.hpp.

◆ msg

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

the reported error message, without location indication.

Definition at line 482 of file error.hpp.


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