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

exception indicating errors with iterators More...

#include <json.hpp>

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

Public Member Functions

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

Static Public Member Functions

template<typename BasicJsonType>
static invalid_iterator create (int id_, const std::string &what_arg, const BasicJsonType &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 name (const std::string &ename, int id_)

Private Member Functions

 invalid_iterator (int id_, const char *what_arg)

Private Attributes

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

Detailed Description

exception indicating errors with iterators

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

Definition at line 2953 of file json.hpp.

Constructor & Destructor Documentation

◆ invalid_iterator()

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

Definition at line 2965 of file json.hpp.

References nlohmann::detail::exception::exception(), and invalid_iterator().

Referenced by create(), and invalid_iterator().

Here is the caller graph for this function:

Member Function Documentation

◆ create()

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

Definition at line 2957 of file json.hpp.

References nlohmann::BasicJsonType(), nlohmann::detail::exception::diagnostics(), invalid_iterator(), and nlohmann::detail::exception::name().

Referenced by nlohmann::detail::iter_impl< typename std::conditional< std::is_const< BasicJsonType >::value, typename std::remove_const< BasicJsonType >::type, const BasicJsonType >::type >::key(), nlohmann::detail::iter_impl< typename std::conditional< std::is_const< BasicJsonType >::value, typename std::remove_const< BasicJsonType >::type, const BasicJsonType >::type >::operator*(), nlohmann::detail::iter_impl< typename std::conditional< std::is_const< BasicJsonType >::value, typename std::remove_const< BasicJsonType >::type, const BasicJsonType >::type >::operator+=(), nlohmann::detail::iter_impl< typename std::conditional< std::is_const< BasicJsonType >::value, typename std::remove_const< BasicJsonType >::type, const BasicJsonType >::type >::operator-(), nlohmann::detail::iter_impl< typename std::conditional< std::is_const< BasicJsonType >::value, typename std::remove_const< BasicJsonType >::type, const BasicJsonType >::type >::operator->(), nlohmann::detail::iter_impl< typename std::conditional< std::is_const< BasicJsonType >::value, typename std::remove_const< BasicJsonType >::type, const BasicJsonType >::type >::operator<(), nlohmann::detail::iter_impl< typename std::conditional< std::is_const< BasicJsonType >::value, typename std::remove_const< BasicJsonType >::type, const BasicJsonType >::type >::operator==(), and nlohmann::detail::iter_impl< typename std::conditional< std::is_const< BasicJsonType >::value, typename std::remove_const< BasicJsonType >::type, const BasicJsonType >::type >::operator[]().

Here is the caller graph for this function:

◆ diagnostics()

◆ name()

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

Definition at line 2824 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
inlineoverridenoexceptinherited

returns the explanatory string

Definition at line 2812 of file json.hpp.

References 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 exception(), and what().


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