A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
detail::exception Class Reference

general exception of the basic_json class More...

#include "json.h"

+ Inheritance diagram for detail::exception:
+ Collaboration diagram for 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

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

Static Private Member Functions

template<typename BasicJsonType >
static std::string get_byte_positions (const BasicJsonType *leaf_element)
 

Private Attributes

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

Detailed Description

general exception of the basic_json class

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

Definition at line 4541 of file json.h.

Constructor & Destructor Documentation

◆ exception()

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

Definition at line 4555 of file json.h.

Member Function Documentation

◆ diagnostics() [1/2]

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

◆ diagnostics() [2/2]

static std::string detail::exception::diagnostics ( std::nullptr_t  )
inlinestaticprotected

◆ get_byte_positions()

template<typename BasicJsonType >
static std::string detail::exception::get_byte_positions ( const BasicJsonType *  leaf_element)
inlinestaticprivate

Definition at line 4647 of file json.h.

Referenced by diagnostics().

+ Here is the caller graph for this function:

◆ name()

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

Definition at line 4557 of file json.h.

References detail::concat().

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

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

◆ what()

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

returns the explanatory string

Definition at line 4545 of file json.h.

References m.

Member Data Documentation

◆ id

const int detail::exception::id

the id of the exception

Definition at line 4551 of file json.h.

◆ m

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

an exception object as storage for error messages

Definition at line 4634 of file json.h.

Referenced by two-ray-to-three-gpp-ch-calibration.FtrParams::__init__(), and what().


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