| 1442 | class 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 |