Arkanjo 0.1
A tool for find code duplicated functions in codebases
Loading...
Searching...
No Matches
detail::exception Class Reference

general exception of the basic_json class More...

#include <json.hpp>

+ 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

static std::string name (const std::string &ename, int id_)
 
static std::string diagnostics (std::nullptr_t)
 
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 4539 of file json.hpp.

Constructor & Destructor Documentation

◆ exception()

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

Definition at line 4553 of file json.hpp.

Member Function Documentation

◆ diagnostics() [1/2]

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

Definition at line 4566 of file json.hpp.

◆ diagnostics() [2/2]

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

Definition at line 4560 of file json.hpp.

◆ name()

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

Definition at line 4555 of file json.hpp.

◆ what()

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

returns the explanatory string

Definition at line 4543 of file json.hpp.

Member Data Documentation

◆ id

const int detail::exception::id

the id of the exception

Definition at line 4549 of file json.hpp.


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