Skip to content

Json::Exception #211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 8, 2015
Merged

Json::Exception #211

merged 5 commits into from
Mar 8, 2015

Conversation

cdunn2001
Copy link
Contributor

  • Clarify when exceptions are thrown, to avoid crashes caused by malicious input.
  • Use our own type (derived fro std::exception) so they are trappable.

* use macros for logic errors, not input errors
* throw on parsing failure in `operator>>()`, not assert
* throw on malloc, not assert
cdunn2001 added a commit that referenced this pull request Mar 8, 2015
* Add Json::Exception and derivatives.
* Clarify when exceptions are thrown, to avoid crashes caused by malicious input.
* Use our own type (derived fro std::exception) so they are trappable.
@cdunn2001 cdunn2001 merged commit 0d33cb3 into open-source-parsers:master Mar 8, 2015
@cdunn2001 cdunn2001 deleted the except branch March 8, 2015 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant