{"action":"created","issue":{"url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/335","labels_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/335/comments","events_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/335/events","html_url":"https://github.com/KeepSafe/aiohttp/issues/335","id":69487897,"number":335,"title":"ClientDisconnectedError should be a subclass of ClientError","user":{"login":"tdryer","id":857374,"avatar_url":"https://avatars.githubusercontent.com/u/857374?v=3","gravatar_id":"","url":"https://api.github.com/users/tdryer","html_url":"https://github.com/tdryer","followers_url":"https://api.github.com/users/tdryer/followers","following_url":"https://api.github.com/users/tdryer/following{/other_user}","gists_url":"https://api.github.com/users/tdryer/gists{/gist_id}","starred_url":"https://api.github.com/users/tdryer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdryer/subscriptions","organizations_url":"https://api.github.com/users/tdryer/orgs","repos_url":"https://api.github.com/users/tdryer/repos","events_url":"https://api.github.com/users/tdryer/events{/privacy}","received_events_url":"https://api.github.com/users/tdryer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-04-20T01:50:52Z","updated_at":"2015-04-21T03:25:47Z","closed_at":null,"body":"With the current exception hierarchy it's necessary to catch `ClientError` and `ClientDisconnectedError` separately when calling `aiohttp.client.request`. If `ClientDisconnectedError` inherited from `ClientError` as well as `DisconnectedError`, exception checking could be simplified."},"comment":{"url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/comments/94626972","html_url":"https://github.com/KeepSafe/aiohttp/issues/335#issuecomment-94626972","issue_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/335","id":94626972,"user":{"login":"tdryer","id":857374,"avatar_url":"https://avatars.githubusercontent.com/u/857374?v=3","gravatar_id":"","url":"https://api.github.com/users/tdryer","html_url":"https://github.com/tdryer","followers_url":"https://api.github.com/users/tdryer/followers","following_url":"https://api.github.com/users/tdryer/following{/other_user}","gists_url":"https://api.github.com/users/tdryer/gists{/gist_id}","starred_url":"https://api.github.com/users/tdryer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdryer/subscriptions","organizations_url":"https://api.github.com/users/tdryer/orgs","repos_url":"https://api.github.com/users/tdryer/repos","events_url":"https://api.github.com/users/tdryer/events{/privacy}","received_events_url":"https://api.github.com/users/tdryer/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T03:25:47Z","updated_at":"2015-04-21T03:25:47Z","body":"> The name is confusing me too a bit (as my coworkers), but I cannot guess the better.\r\n\r\nYeah, the naming made me think that `ClientDisconnectedError` should be a kind of `ClientError`.\r\n\r\nIt would be convenient if there was a base exception for all the exceptions that aiohttp raises, like how Requests has [RequestException](http://docs.python-requests.org/en/latest/api/#requests.exceptions.RequestException)."}}