You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try {
// some code processing json
} catch (nlohmann::json::parse_error e) {
// process exception
} ...
But it also throws nlohmann::detail::type_error and other exceptions.
Please consider having one base class for all exceptions, so that the users can just have one catch clause for all of them. Otherwise, it seems that they need to have at least 5 catch statements for json errors now.
The text was updated successfully, but these errors were encountered:
I do
But it also throws
nlohmann::detail::type_error
and other exceptions.Please consider having one base class for all exceptions, so that the users can just have one
catch
clause for all of them. Otherwise, it seems that they need to have at least 5catch
statements for json errors now.The text was updated successfully, but these errors were encountered: