-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.py
More file actions
49 lines (25 loc) · 766 Bytes
/
errors.py
File metadata and controls
49 lines (25 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
"""Errors."""
class ProxyError(Exception):
pass
class NoProxyError(Exception):
pass
class ResolveError(Exception):
pass
class ProxyConnError(ProxyError):
errmsg = 'connection_failed'
class ProxyRecvError(ProxyError):
errmsg = 'connection_is_reset'
class ProxySendError(ProxyError):
errmsg = 'connection_is_reset'
class ProxyTimeoutError(ProxyError):
errmsg = 'connection_timeout'
class ProxyEmptyRecvError(ProxyError):
errmsg = 'empty_response'
class BadStatusError(Exception): # BadStatusLine
errmsg = 'bad_status'
class BadResponseError(Exception):
errmsg = 'bad_response'
class BadStatusLine(Exception):
errmsg = 'bad_status_line'
class ErrorOnStream(Exception):
errmsg = 'error_on_stream'