{"action":"closed","issue":{"url":"https://api.github.com/repos/defuse/php-encryption/issues/70","labels_url":"https://api.github.com/repos/defuse/php-encryption/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/defuse/php-encryption/issues/70/comments","events_url":"https://api.github.com/repos/defuse/php-encryption/issues/70/events","html_url":"https://github.com/defuse/php-encryption/issues/70","id":93695667,"number":70,"title":"Base exception class (and better error messages)","user":{"login":"chriseskow","id":19055,"avatar_url":"https://avatars.githubusercontent.com/u/19055?v=3","gravatar_id":"","url":"https://api.github.com/users/chriseskow","html_url":"https://github.com/chriseskow","followers_url":"https://api.github.com/users/chriseskow/followers","following_url":"https://api.github.com/users/chriseskow/following{/other_user}","gists_url":"https://api.github.com/users/chriseskow/gists{/gist_id}","starred_url":"https://api.github.com/users/chriseskow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriseskow/subscriptions","organizations_url":"https://api.github.com/users/chriseskow/orgs","repos_url":"https://api.github.com/users/chriseskow/repos","events_url":"https://api.github.com/users/chriseskow/events{/privacy}","received_events_url":"https://api.github.com/users/chriseskow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-08T04:54:34Z","updated_at":"2015-07-19T17:41:44Z","closed_at":"2015-07-19T17:41:44Z","body":"Any reason why there isn't a base exception class (or marker interface) that all of the library-specific exceptions inherit from? That would make it trivial to catch any crypto-related exception at once, if we don't care about the details of what happened.\r\n\r\nOn the same topic, it would be nice if the exceptions were either more numerous and specific to the individual error case, and/or had better error messages. There are a lot of cases that throw exceptions in the code, but the majority have no error message and are one of just three generic classes.\r\n\r\nThoughts?"}}