BmnRoot
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:
[legend]
Collaboration diagram for nlohmann::detail::exception:
[legend]

Public Member Functions

const char * what () const noexcept override
 returns the explanatory string
 
const char * what () const noexcept override
 returns the explanatory string
 
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)
 
 exception (int id_, const char *what_arg)
 
 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)
 
static std::string name (const std::string &ename, int id_)
 
template<typename BasicJsonType >
static std::string diagnostics (const BasicJsonType &leaf_element)
 
static std::string name (const std::string &ename, int id_)
 
template<typename BasicJsonType >
static std::string diagnostics (const BasicJsonType &leaf_element)
 

Detailed Description

general exception of the basic_json class

See also
https://json.nlohmann.me/api/basic_json/exception/

Definition at line 2808 of file json.hpp.

Constructor & Destructor Documentation

◆ exception() [1/3]

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

Definition at line 2822 of file json.hpp.

◆ exception() [2/3]

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

Definition at line 2822 of file json.hpp.

◆ exception() [3/3]

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

Definition at line 2822 of file json.hpp.

Member Function Documentation

◆ diagnostics() [1/3]

◆ diagnostics() [2/3]

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

◆ diagnostics() [3/3]

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

◆ name() [1/3]

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

◆ name() [2/3]

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

Definition at line 2824 of file json.hpp.

◆ name() [3/3]

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

Definition at line 2824 of file json.hpp.

◆ what() [1/3]

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

returns the explanatory string

Definition at line 2812 of file json.hpp.

◆ what() [2/3]

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

returns the explanatory string

Definition at line 2812 of file json.hpp.

◆ what() [3/3]

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

returns the explanatory string

Definition at line 2812 of file json.hpp.

Member Data Documentation

◆ id

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

the id of the exception

Definition at line 2818 of file json.hpp.


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