summaryrefslogtreecommitdiff
path: root/msgpack/exceptions.py
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2012-12-11 22:17:36 +0900
committerINADA Naoki <inada-n@klab.com>2012-12-11 22:17:36 +0900
commit685026d2e1e2c014118954781d7e30bcf2ba3038 (patch)
tree6dd5d92c809ec2c94c4effcff46617513be87d32 /msgpack/exceptions.py
parent171145e56290a2254d6b648d438dde33cd631fc4 (diff)
parent1c5b865db36a9cd2db5eb8de7625573a78085c56 (diff)
downloadmsgpack-python-685026d2e1e2c014118954781d7e30bcf2ba3038.tar.gz
Split _msgpack.pyx (fix #34)
Diffstat (limited to 'msgpack/exceptions.py')
-rw-r--r--msgpack/exceptions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/msgpack/exceptions.py b/msgpack/exceptions.py
index 0a75430..2565541 100644
--- a/msgpack/exceptions.py
+++ b/msgpack/exceptions.py
@@ -21,3 +21,9 @@ class ExtraData(ValueError):
def __str__(self):
return "unpack(b) recieved extra data."
+
+class PackException(Exception):
+ pass
+
+class PackValueError(PackException, ValueError):
+ pass