diff options
author | INADA Naoki <songofacandy@gmail.com> | 2016-02-14 11:54:01 +0900 |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2016-02-14 14:29:34 +0900 |
commit | 3dad39811d93a58c5d3de874193290b935da1446 (patch) | |
tree | 5883be97938bee80c57fb66e0dc925e4f4548cad /msgpack/exceptions.py | |
parent | d90008d4f57ec83a15b84cf2db2edc36e9504ac1 (diff) | |
download | msgpack-python-3dad39811d93a58c5d3de874193290b935da1446.tar.gz |
Deprecate PackExceptions
Diffstat (limited to 'msgpack/exceptions.py')
-rw-r--r-- | msgpack/exceptions.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/msgpack/exceptions.py b/msgpack/exceptions.py index bb12264..73010b7 100644 --- a/msgpack/exceptions.py +++ b/msgpack/exceptions.py @@ -24,12 +24,18 @@ class ExtraData(UnpackValueError): class PackException(Exception): - pass + """Deprecated. Use Exception instead to catch all exception during packing.""" class PackValueError(PackException, ValueError): - pass + """PackValueError is raised when type of input data is supported but it's value is unsupported. + + Deprecated. Use ValueError instead. + """ class PackOverflowError(PackValueError, OverflowError): - pass + """PackOverflowError is raised when integer value is out of range of msgpack support [-2**31, 2**32). + + Deprecated. Use ValueError instead. + """ |