Debian Codegraph @

httplib2/error.py

raw
1 # All exceptions raised here derive from HttpLib2Error
2 class HttpLib2Error(Exception):
3 pass
4
5
6 # Some exceptions can be caught and optionally
7 # be turned back into responses.
8 class HttpLib2ErrorWithResponse(HttpLib2Error):
9 def __init__(self, desc, response, content):
10 self.response = response
11 self.content = content
12 HttpLib2Error.__init__(self, desc)
13
14
15 class RedirectMissingLocation(HttpLib2ErrorWithResponse):
16 pass
17
18
19 class RedirectLimit(HttpLib2ErrorWithResponse):
20 pass
21
22
23 class FailedToDecompressContent(HttpLib2ErrorWithResponse):
24 pass
25
26
27 class UnimplementedDigestAuthOptionError(HttpLib2ErrorWithResponse):
28 pass
29
30
31 class UnimplementedHmacDigestAuthOptionError(HttpLib2ErrorWithResponse):
32 pass
33
34
35 class MalformedHeader(HttpLib2Error):
36 pass
37
38
39 class RelativeURIError(HttpLib2Error):
40 pass
41
42
43 class ServerNotFoundError(HttpLib2Error):
44 pass
45
46
47 class ProxiesUnavailableError(HttpLib2Error):
48 pass