| 372 | { |
| 373 | |
| 374 | class first_error_handler : public error_handler |
| 375 | { |
| 376 | public: |
| 377 | bool error_{false}; |
| 378 | json::json_pointer ptr_; |
| 379 | json instance_; |
| 380 | std::string message_; |
| 381 | |
| 382 | void error(const json::json_pointer &ptr, const json &instance, const std::string &message) override |
| 383 | { |
| 384 | if (*this) |
| 385 | return; |
| 386 | error_ = true; |
| 387 | ptr_ = ptr; |
| 388 | instance_ = instance; |
| 389 | message_ = message; |
| 390 | } |
| 391 | |
| 392 | operator bool() const { return error_; } |
| 393 | }; |
| 394 | |
| 395 | class logical_not : public schema |
| 396 | { |
nothing calls this directly
no outgoing calls
no test coverage detected