1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-25 13:41:56 +03:00

🔨 cleaner exception interface

This commit is contained in:
Niels Lohmann
2018-03-11 22:47:25 +01:00
parent ad47b0fbde
commit 3d4f6a2940
6 changed files with 73 additions and 60 deletions

View File

@ -123,7 +123,7 @@ class SaxEventLogger : public nlohmann::json::json_sax_t
return true;
}
bool parse_error(std::size_t position, const std::string&, const std::string&) override
bool parse_error(std::size_t position, const std::string&, const json::exception&) override
{
errored = true;
events.push_back("parse_error(" + std::to_string(position) + ")");