mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-21 21:03:17 +00:00
Deprecate PackExceptions
This commit is contained in:
parent
d90008d4f5
commit
3dad39811d
2 changed files with 14 additions and 8 deletions
|
@ -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.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue