class UnpackException(Exception): """Base class for some exceptions raised while unpacking. NOTE: unpack may raise exception other than subclass of UnpackException. If you want to catch all error, catch Exception instead. """ class BufferFull(UnpackException): pass class OutOfData(UnpackException): pass class FormatError(ValueError, UnpackException): """Invalid msgpack format""" class StackError(ValueError, UnpackException): """Too nested""" # Deprecated. Use ValueError instead UnpackValueError = ValueError class ExtraData(UnpackValueError): """ExtraData is raised when there is trailing data. This exception is raised while only one-shot (not streaming) unpack. """ def __init__(self, unpacked, extra): self.unpacked = unpacked self.extra = extra def __str__(self): return "unpack(b) received extra data." # Deprecated. Use Exception instead to catch all exception during packing. PackException = Exception PackValueError = ValueError PackOverflowError = OverflowError
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
.__init__.pyo.40009 | File | 1.76 KB | 0644 |
|
._version.pyo.40009 | File | 212 B | 0644 |
|
.exceptions.pyo.40009 | File | 2.44 KB | 0644 |
|
.ext.pyo.40009 | File | 7.51 KB | 0644 |
|
__init__.py | File | 1.09 KB | 0644 |
|
__init__.pyc | File | 1.76 KB | 0644 |
|
__init__.pyo | File | 1.76 KB | 0644 |
|
_version.py | File | 20 B | 0644 |
|
_version.pyc | File | 212 B | 0644 |
|
_version.pyo | File | 212 B | 0644 |
|
exceptions.py | File | 1.06 KB | 0644 |
|
exceptions.pyc | File | 2.44 KB | 0644 |
|
exceptions.pyo | File | 2.44 KB | 0644 |
|
ext.py | File | 5.89 KB | 0644 |
|
ext.pyc | File | 7.51 KB | 0644 |
|
ext.pyo | File | 7.51 KB | 0644 |
|
fallback.py | File | 36.26 KB | 0644 |
|
fallback.pyc | File | 32.08 KB | 0644 |
|
fallback.pyo | File | 31.91 KB | 0644 |
|