Orderbook Simulation
OrderbookSim is a C++ application simulating a financial market order book. It efficiently manages and matches buy and sell orders while calculating the Volume-Weighted Average Price (VWAP).
Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | List of all members
detail::exception Class Reference

general exception of the basic_json class More...

#include <json.hpp>

Inheritance diagram for detail::exception:
detail::invalid_iterator detail::other_error detail::out_of_range detail::parse_error detail::type_error

Public Member Functions

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

Public Attributes

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

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/

Constructor & Destructor Documentation

◆ exception()

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

Member Function Documentation

◆ diagnostics() [1/2]

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

◆ diagnostics() [2/2]

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

◆ name()

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

◆ what()

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

returns the explanatory string

Member Data Documentation

◆ id

const int detail::exception::id

the id of the exception


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