mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-20 12:23:16 +00:00
24 lines
402 B
Python
24 lines
402 B
Python
![]() |
class UnpackException(Exception):
|
||
|
pass
|
||
|
|
||
|
|
||
|
class BufferFull(UnpackException):
|
||
|
pass
|
||
|
|
||
|
|
||
|
class OutOfData(UnpackException):
|
||
|
pass
|
||
|
|
||
|
|
||
|
class UnpackValueError(UnpackException, ValueError):
|
||
|
pass
|
||
|
|
||
|
|
||
|
class ExtraData(ValueError):
|
||
|
def __init__(self, unpacked, extra):
|
||
|
self.unpacked = unpacked
|
||
|
self.extra = extra
|
||
|
|
||
|
def __str__(self):
|
||
|
return "unpack(b) recieved extra data."
|