summaryrefslogtreecommitdiff
path: root/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/msgpack/exceptions.py
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@gmail.com>2018-12-11 10:01:23 +0000
committerShubham Saini <shubham6405@gmail.com>2018-12-11 10:01:23 +0000
commit68df54d6629ec019142eb149dd037774f2d11e7c (patch)
tree345bc22d46b4e01a4ba8303b94278952a4ed2b9e /venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/msgpack/exceptions.py
First commit
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.py41
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 @@
1class UnpackException(Exception):
2 """Deprecated. Use Exception instead to catch all exception during unpacking."""
3
4
5class BufferFull(UnpackException):
6 pass
7
8
9class OutOfData(UnpackException):
10 pass
11
12
13class UnpackValueError(UnpackException, ValueError):
14 """Deprecated. Use ValueError instead."""
15
16
17class 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
26class PackException(Exception):
27 """Deprecated. Use Exception instead to catch all exception during packing."""
28
29
30class 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
37class 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 """