Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
detail::other_error Class Reference

exception indicating other library errors More...

#include <json.hpp>

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

Public Member Functions

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

Static Public Member Functions

template<typename BasicJsonContext , enable_if_t< is_basic_json_context< BasicJsonContext >::value, int > = 0>
static other_error create (int id_, const std::string &what_arg, BasicJsonContext context)
 

Data Fields

const int id
 the id of the exception
 

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_)
 

Private Member Functions

 other_error (int id_, const char *what_arg)
 

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

exception indicating other library errors

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

Definition at line 4731 of file json.hpp.

Constructor & Destructor Documentation

◆ other_error()

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

Definition at line 4743 of file json.hpp.

Member Function Documentation

◆ create()

template<typename BasicJsonContext , enable_if_t< is_basic_json_context< BasicJsonContext >::value, int > = 0>
static other_error detail::other_error::create ( int  id_,
const std::string &  what_arg,
BasicJsonContext  context 
)
inlinestatic

◆ diagnostics() [1/2]

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

◆ diagnostics() [2/2]

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

Definition at line 4531 of file json.hpp.

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

Here is the caller graph for this function:

◆ get_byte_positions()

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

Definition at line 4616 of file json.hpp.

Referenced by detail::exception::diagnostics().

Here is the caller graph for this function:

◆ name()

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

Definition at line 4526 of file json.hpp.

References detail::concat().

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

Here is the caller graph for this function:

◆ what()

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

returns the explanatory string

Definition at line 4514 of file json.hpp.

References detail::exception::m.

Field Documentation

◆ id

const int detail::exception::id
inherited

the id of the exception

Definition at line 4520 of file json.hpp.

◆ m

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

an exception object as storage for error messages

Definition at line 4603 of file json.hpp.

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


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