Unverified Commit 90d51b92 authored by Fraser's avatar Fraser Committed by GitHub

Update parse_exceptions.md

Referring to https://github.com/nlohmann/json/blob/develop/doc/examples/parse_error.cpp  and https://json.nlohmann.me/home/exceptions/
(and also based on testing), the catch command should reference `catch (json::parse_error& ex)` and not `catch (json::exception::parse_error& ex)`
parent 176d8e26
......@@ -8,7 +8,7 @@ try
{
j = json::parse(my_input);
}
catch (json::exception::parse_error& ex)
catch (json::parse_error& ex)
{
std::cerr << "parse error at byte " << ex.byte << std::endl;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment