File tree 2 files changed +14
-8
lines changed 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ from libc.string cimport *
11
11
from libc.limits cimport *
12
12
13
13
from msgpack.exceptions import (
14
- BufferFull,
15
- OutOfData,
16
- UnpackValueError,
17
- ExtraData,
18
- )
14
+ BufferFull,
15
+ OutOfData,
16
+ UnpackValueError,
17
+ ExtraData,
18
+ )
19
19
from msgpack import ExtType
20
20
21
21
Original file line number Diff line number Diff line change @@ -24,12 +24,18 @@ def __str__(self):
24
24
25
25
26
26
class PackException (Exception ):
27
- pass
27
+ """Deprecated. Use Exception instead to catch all exception during packing."""
28
28
29
29
30
30
class PackValueError (PackException , ValueError ):
31
- pass
31
+ """PackValueError is raised when type of input data is supported but it's value is unsupported.
32
+
33
+ Deprecated. Use ValueError instead.
34
+ """
32
35
33
36
34
37
class PackOverflowError (PackValueError , OverflowError ):
35
- pass
38
+ """PackOverflowError is raised when integer value is out of range of msgpack support [-2**31, 2**32).
39
+
40
+ Deprecated. Use ValueError instead.
41
+ """
You can’t perform that action at this time.
0 commit comments