STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
detail::exception Class Reference

general exception of the basic_json class More...

#include <json.hpp>

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

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)

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 4371 of file json.hpp.

Constructor & Destructor Documentation

◆ exception()

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

Member Function Documentation

◆ diagnostics() [1/2]

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

◆ diagnostics() [2/2]

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

◆ name()

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

◆ what()

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

returns the explanatory string

Definition at line 4375 of file json.hpp.

References m.

Member Data Documentation

◆ id

◆ m

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

The documentation for this class was generated from the following file:
  • daq-server/diablo_server/lib/include/nlohmann/json.hpp