core-adapters 0.1.3
Third-party adapters for snicholls-core: nanobind helpers, nlohmann/json hooks, the snicholls_core Python package
Loading...
Searching...
No Matches
snicholls::json_error Struct Reference

A JSON value that does not convert to or from a core type. More...

#include <snicholls/core_adapters/nlohmann/json.hpp>

Inheritance diagram for snicholls::json_error:

Public Member Functions

 json_error (const std::string &what)
 Constructs it.
 

Detailed Description

A JSON value that does not convert to or from a core type.

Thrown by every adapter under adapters/nlohmann/ in place of nlohmann's own exceptions, so a caller catches one type and no third-party exception crosses into code that only knows core.

Definition at line 75 of file json.hpp.

Constructor & Destructor Documentation

◆ json_error()

snicholls::json_error::json_error ( const std::string &  what)
inlineexplicit

Constructs it.

Parameters
whatthe message.

Definition at line 79 of file json.hpp.


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