exceptions.py 558 Bytes
Newer Older
Alexandre's avatar
Alexandre committed
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
def timeout_connection(signum, frame):
    raise TimeoutConnectionError('Connection timeout')

class TimeoutConnectionError(Exception):
    pass

class ConnectionException(Exception):
    pass

class ConnectionDOTException(ConnectionException):
    pass

class ConnectionDOHException(ConnectionException):
    pass

class FamilyException(ConnectionException):
    pass

class RequestException(Exception):
    pass

class RequestDOTException(RequestException):
    pass

class PipeliningException(Exception):
    pass

class DOHException(Exception):
    pass