MQTTSuite
Loading...
Searching...
No Matches
custom_error_handler Class Reference
Inheritance diagram for custom_error_handler:
Collaboration diagram for custom_error_handler:

Private Member Functions

void error (const nlohmann::json::json_pointer &ptr, const json &instance, const std::string &message) override
void error (const nlohmann::json::json_pointer &ptr, const json &instance, const std::string &message) override
void error (const nlohmann::json::json_pointer &ptr, const json &instance, const std::string &message) override
void error (const nlohmann::json::json_pointer &ptr, const json &instance, const std::string &message) override

Additional Inherited Members

Public Member Functions inherited from nlohmann::json_schema::basic_error_handler
void error (const json::json_pointer &, const json &, const std::string &) override
virtual void reset ()
 operator bool () const
Public Member Functions inherited from nlohmann::json_schema::error_handler
virtual ~error_handler ()

Detailed Description

Definition at line 37 of file json-schema-validate.cpp.

Member Function Documentation

◆ error() [1/4]

void custom_error_handler::error ( const nlohmann::json::json_pointer & ptr,
const json & instance,
const std::string & message )
inlineoverrideprivate

Definition at line 39 of file json-schema-validate.cpp.

40 {
42 std::cerr << "ERROR: '" << ptr << "' - '" << instance << "': " << message << "\n";
43 }
void error(const json::json_pointer &, const json &, const std::string &) override
static const auto instance
Definition issue-93.cpp:14

References nlohmann::json_schema::basic_error_handler::error().

Here is the call graph for this function:

◆ error() [2/4]

void custom_error_handler::error ( const nlohmann::json::json_pointer & ptr,
const json & instance,
const std::string & message )
inlineoverrideprivate

Definition at line 39 of file json-schema-validate.cpp.

40 {
42 std::cerr << "ERROR: '" << ptr << "' - '" << instance << "': " << message << "\n";
43 }

◆ error() [3/4]

void custom_error_handler::error ( const nlohmann::json::json_pointer & ptr,
const json & instance,
const std::string & message )
inlineoverrideprivate

Definition at line 23 of file issue-255-error-message-limit-precision.cpp.

24 {
25 if (message != "instance exceeds maximum of 3.141592653589793")
26 throw std::invalid_argument("Precision print does not work.");
27 }

◆ error() [4/4]

void custom_error_handler::error ( const nlohmann::json::json_pointer & ptr,
const json & instance,
const std::string & message )
inlineoverrideprivate

Definition at line 23 of file issue-255-error-message-limit-precision.cpp.

24 {
25 if (message != "instance exceeds maximum of 3.141592653589793")
26 throw std::invalid_argument("Precision print does not work.");
27 }

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