1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 from __future__ import absolute_import
21
22 from cproton import PN_TIMEOUT, PN_INTR
23
24
26 """
27 The root of the proton exception hierarchy. All proton exception
28 classes derive from this exception.
29 """
30 pass
31
32
34 """
35 A timeout exception indicates that a blocking operation has timed
36 out.
37 """
38 pass
39
40
42 """
43 An interrupt exception indicates that a blocking operation was interrupted.
44 """
45 pass
46
47
48 EXCEPTIONS = {
49 PN_TIMEOUT: Timeout,
50 PN_INTR: Interrupt
51 }
52
53
55 """
56 The MessageException class is the root of the message exception
57 hierarchy. All exceptions generated by the Message class derive from
58 this exception.
59 """
60 pass
61
62
64 """
65 The DataException class is the root of the Data exception hierarchy.
66 All exceptions raised by the Data class extend this exception.
67 """
68 pass
69
70
73
74
77
78
81
82
85
86
89
90
93