BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
nlohmann::detail::exception Class Reference

general exception of the basic_json class More...

#include <json.hpp>

Inheritance diagram for nlohmann::detail::exception:
Collaboration diagram for nlohmann::detail::exception:

Public Member Functions

const char * what () const noexcept override
 returns the explanatory string

Public Attributes

const int id
 the id of the exception

Protected Member Functions

 exception (int id_, const char *what_arg)

Static Protected Member Functions

static std::string name (const std::string &ename, int id_)
template<typename BasicJsonType>
static std::string diagnostics (const BasicJsonType &leaf_element)

Private Attributes

std::runtime_error m
 an exception object as storage for error messages

Detailed Description

Constructor & Destructor Documentation

◆ exception()

nlohmann::detail::exception::exception ( int id_,
const char * what_arg )
inlineprotected

Definition at line 2857 of file json.hpp.

References exception(), and m.

Referenced by exception(), nlohmann::detail::invalid_iterator::invalid_iterator(), nlohmann::detail::other_error::other_error(), nlohmann::detail::out_of_range::out_of_range(), nlohmann::detail::parse_error::parse_error(), and nlohmann::detail::type_error::type_error().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ diagnostics()

template<typename BasicJsonType>
std::string nlohmann::detail::exception::diagnostics ( const BasicJsonType & leaf_element)
inlinestaticprotected

Definition at line 2868 of file json.hpp.

References nlohmann::a, nlohmann::detail::array, nlohmann::b, nlohmann::BasicJsonType(), nlohmann::detail::binary, nlohmann::detail::boolean, nlohmann::detail::discarded, i, nlohmann::detail::null, nlohmann::detail::number_float, nlohmann::detail::number_integer, nlohmann::detail::number_unsigned, nlohmann::detail::object, and nlohmann::detail::string.

Referenced by nlohmann::detail::invalid_iterator::create(), nlohmann::detail::other_error::create(), nlohmann::detail::out_of_range::create(), nlohmann::detail::parse_error::create(), nlohmann::detail::parse_error::create(), and nlohmann::detail::type_error::create().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ name()

std::string nlohmann::detail::exception::name ( const std::string & ename,
int id_ )
inlinestaticprotected

Definition at line 2862 of file json.hpp.

Referenced by nlohmann::detail::invalid_iterator::create(), nlohmann::detail::other_error::create(), nlohmann::detail::out_of_range::create(), nlohmann::detail::parse_error::create(), nlohmann::detail::parse_error::create(), and nlohmann::detail::type_error::create().

Here is the caller graph for this function:

◆ what()

const char * nlohmann::detail::exception::what ( ) const
inlineoverridenoexcept

Definition at line 2850 of file json.hpp.

References m.

Member Data Documentation

◆ id

const int nlohmann::detail::exception::id

Definition at line 2853 of file json.hpp.

◆ m

std::runtime_error nlohmann::detail::exception::m
private

Definition at line 2923 of file json.hpp.

Referenced by exception(), and what().


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