Electroneum
Static Public Member Functions | Private Member Functions | List of all members
nlohmann::detail::other_error Class Reference

exception indicating other errors More...

#include <json.hpp>

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

Static Public Member Functions

static other_error create (int id, const std::string &what_arg)
 

Private Member Functions

 other_error (int id_, const char *what_arg)
 

Additional Inherited Members

- Public Member Functions inherited from nlohmann::detail::exception
virtual const char * what () const noexcept override
 returns the explanatory string More...
 
- Public Attributes inherited from nlohmann::detail::exception
const int id
 the id of the exception More...
 
- Protected Member Functions inherited from nlohmann::detail::exception
 exception (int id_, const char *what_arg)
 
- Static Protected Member Functions inherited from nlohmann::detail::exception
static std::string name (const std::string &ename, int id)
 

Detailed Description

exception indicating other errors

Exceptions have ids 5xx.

name / id example massage description ----------—
json.exception.other_error.501 unsuccessful: {"op":"test","path":"/baz", "value":"bar"} A JSON Patch operation 'test' failed. The unsuccessful operation is also printed.
Since
version 3.0.0

Constructor & Destructor Documentation

◆ other_error()

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

Member Function Documentation

◆ create()

static other_error nlohmann::detail::other_error::create ( int  id,
const std::string what_arg 
)
inlinestatic

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