Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/httplib2/error.py: 88%
25 statements
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-08 06:51 +0000
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-08 06:51 +0000
1# All exceptions raised here derive from HttpLib2Error
2class HttpLib2Error(Exception):
3 pass
6# Some exceptions can be caught and optionally
7# be turned back into responses.
8class HttpLib2ErrorWithResponse(HttpLib2Error):
9 def __init__(self, desc, response, content):
10 self.response = response
11 self.content = content
12 HttpLib2Error.__init__(self, desc)
15class RedirectMissingLocation(HttpLib2ErrorWithResponse):
16 pass
19class RedirectLimit(HttpLib2ErrorWithResponse):
20 pass
23class FailedToDecompressContent(HttpLib2ErrorWithResponse):
24 pass
27class UnimplementedDigestAuthOptionError(HttpLib2ErrorWithResponse):
28 pass
31class UnimplementedHmacDigestAuthOptionError(HttpLib2ErrorWithResponse):
32 pass
35class MalformedHeader(HttpLib2Error):
36 pass
39class RelativeURIError(HttpLib2Error):
40 pass
43class ServerNotFoundError(HttpLib2Error):
44 pass
47class ProxiesUnavailableError(HttpLib2Error):
48 pass