{"action":"created","issue":{"url":"https://api.github.com/repos/open-source-parsers/jsoncpp/issues/188","labels_url":"https://api.github.com/repos/open-source-parsers/jsoncpp/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/open-source-parsers/jsoncpp/issues/188/comments","events_url":"https://api.github.com/repos/open-source-parsers/jsoncpp/issues/188/events","html_url":"https://github.com/open-source-parsers/jsoncpp/issues/188","id":59001861,"number":188,"title":"subclass std::runtime_error for jsoncpp specific exceptions","user":{"login":"marklakata","id":5741616,"avatar_url":"https://avatars.githubusercontent.com/u/5741616?v=3","gravatar_id":"","url":"https://api.github.com/users/marklakata","html_url":"https://github.com/marklakata","followers_url":"https://api.github.com/users/marklakata/followers","following_url":"https://api.github.com/users/marklakata/following{/other_user}","gists_url":"https://api.github.com/users/marklakata/gists{/gist_id}","starred_url":"https://api.github.com/users/marklakata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marklakata/subscriptions","organizations_url":"https://api.github.com/users/marklakata/orgs","repos_url":"https://api.github.com/users/marklakata/repos","events_url":"https://api.github.com/users/marklakata/events{/privacy}","received_events_url":"https://api.github.com/users/marklakata/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-26T01:22:07Z","updated_at":"2015-03-03T16:50:57Z","closed_at":"2015-03-03T16:50:57Z","body":"I would like to catch parsing exceptions due to malformed input, but I don't want to catch all `std::runtime_error` exceptions. Perhaps\r\n\r\n    class json_runtime_error : public std::runtime_error\r\n    {\r\n    ...\r\n    }"},"comment":{"url":"https://api.github.com/repos/open-source-parsers/jsoncpp/issues/comments/76984359","html_url":"https://github.com/open-source-parsers/jsoncpp/issues/188#issuecomment-76984359","issue_url":"https://api.github.com/repos/open-source-parsers/jsoncpp/issues/188","id":76984359,"user":{"login":"cdunn2001","id":450656,"avatar_url":"https://avatars.githubusercontent.com/u/450656?v=3","gravatar_id":"","url":"https://api.github.com/users/cdunn2001","html_url":"https://github.com/cdunn2001","followers_url":"https://api.github.com/users/cdunn2001/followers","following_url":"https://api.github.com/users/cdunn2001/following{/other_user}","gists_url":"https://api.github.com/users/cdunn2001/gists{/gist_id}","starred_url":"https://api.github.com/users/cdunn2001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdunn2001/subscriptions","organizations_url":"https://api.github.com/users/cdunn2001/orgs","repos_url":"https://api.github.com/users/cdunn2001/repos","events_url":"https://api.github.com/users/cdunn2001/events{/privacy}","received_events_url":"https://api.github.com/users/cdunn2001/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T16:50:57Z","updated_at":"2015-03-03T16:50:57Z","body":"JSON_ASSERT now throws `std::logic_error`. In a way, that goes the wrong direction, but it forces people to trap `std::exception` instead of `std::runtime_error`, which will help if/when we provide our own exception class."}}