mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-25 14:44:10 +00:00
Deprecate PackExceptions
This commit is contained in:
parent
d90008d4f5
commit
3dad39811d
2 changed files with 14 additions and 8 deletions
|
|
@ -11,11 +11,11 @@ from libc.string cimport *
|
||||||
from libc.limits cimport *
|
from libc.limits cimport *
|
||||||
|
|
||||||
from msgpack.exceptions import (
|
from msgpack.exceptions import (
|
||||||
BufferFull,
|
BufferFull,
|
||||||
OutOfData,
|
OutOfData,
|
||||||
UnpackValueError,
|
UnpackValueError,
|
||||||
ExtraData,
|
ExtraData,
|
||||||
)
|
)
|
||||||
from msgpack import ExtType
|
from msgpack import ExtType
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,12 +24,18 @@ class ExtraData(UnpackValueError):
|
||||||
|
|
||||||
|
|
||||||
class PackException(Exception):
|
class PackException(Exception):
|
||||||
pass
|
"""Deprecated. Use Exception instead to catch all exception during packing."""
|
||||||
|
|
||||||
|
|
||||||
class PackValueError(PackException, ValueError):
|
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):
|
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