MCPcopy Create free account
hub / github.com/pboettch/json-schema-validator / throwing_error_handler

Class throwing_error_handler

src/json-validator.cpp:1442–1448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1440}
1441
1442class throwing_error_handler : public error_handler
1443{
1444 void error(const json::json_pointer &ptr, const json &instance, const std::string &message) override
1445 {
1446 throw std::invalid_argument(std::string("At ") + ptr.to_string() + " of " + instance.dump() + " - " + message + "\n");
1447 }
1448};
1449
1450} // namespace
1451

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected