From 3dad39811d93a58c5d3de874193290b935da1446 Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Sun, 14 Feb 2016 11:54:01 +0900 Subject: Deprecate PackExceptions --- msgpack/exceptions.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'msgpack/exceptions.py') 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. + """ -- cgit v1.2.1