Eclipse SUMO - Simulation of Urban MObility
nlohmann::detail::other_error Class Reference

exception indicating other library errors More...

#include <json.hpp>

Inheritance diagram for nlohmann::detail::other_error:
[legend]
Collaboration diagram for nlohmann::detail::other_error:
[legend]

Public Member Functions

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

Static Public Member Functions

template<typename BasicJsonType >
static other_error create (int id_, const std::string &what_arg, const BasicJsonType &context)
 

Data Fields

const int id
 the id of the exception More...
 

Static Protected Member Functions

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

Private Member Functions

 other_error (int id_, const char *what_arg)
 

Private Attributes

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

Detailed Description

exception indicating other library errors

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

Definition at line 3005 of file json.hpp.

Constructor & Destructor Documentation

◆ other_error()

nlohmann::detail::other_error::other_error ( int  id_,
const char *  what_arg 
)
inlineprivate

Definition at line 3017 of file json.hpp.

Member Function Documentation

◆ create()

template<typename BasicJsonType >
static other_error nlohmann::detail::other_error::create ( int  id_,
const std::string &  what_arg,
const BasicJsonType &  context 
)
inlinestatic

◆ diagnostics()

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

◆ name()

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

Definition at line 2824 of file json.hpp.

References nlohmann::to_string().

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

Here is the caller graph for this function:

◆ what()

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

returns the explanatory string

Definition at line 2812 of file json.hpp.

References nlohmann::detail::exception::m.

Field Documentation

◆ id

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

the id of the exception

Definition at line 2818 of file json.hpp.

◆ m

std::runtime_error nlohmann::detail::exception::m
privateinherited

an exception object as storage for error messages

Definition at line 2895 of file json.hpp.

Referenced by nlohmann::detail::exception::what().


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