diff options
Diffstat (limited to 'venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/msgpack/exceptions.py')
-rw-r--r-- | venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/msgpack/exceptions.py | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/msgpack/exceptions.py b/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/msgpack/exceptions.py new file mode 100644 index 0000000..e0b5133 --- /dev/null +++ b/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/msgpack/exceptions.py | |||
@@ -0,0 +1,41 @@ | |||
1 | class UnpackException(Exception): | ||
2 | """Deprecated. Use Exception instead to catch all exception during unpacking.""" | ||
3 | |||
4 | |||
5 | class BufferFull(UnpackException): | ||
6 | pass | ||
7 | |||
8 | |||
9 | class OutOfData(UnpackException): | ||
10 | pass | ||
11 | |||
12 | |||
13 | class UnpackValueError(UnpackException, ValueError): | ||
14 | """Deprecated. Use ValueError instead.""" | ||
15 | |||
16 | |||
17 | class ExtraData(UnpackValueError): | ||
18 | def __init__(self, unpacked, extra): | ||
19 | self.unpacked = unpacked | ||
20 | self.extra = extra | ||
21 | |||
22 | def __str__(self): | ||
23 | return "unpack(b) received extra data." | ||
24 | |||
25 | |||
26 | class PackException(Exception): | ||
27 | """Deprecated. Use Exception instead to catch all exception during packing.""" | ||
28 | |||
29 | |||
30 | class PackValueError(PackException, ValueError): | ||
31 | """PackValueError is raised when type of input data is supported but it's value is unsupported. | ||
32 | |||
33 | Deprecated. Use ValueError instead. | ||
34 | """ | ||
35 | |||
36 | |||
37 | class PackOverflowError(PackValueError, OverflowError): | ||
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 | """ | ||