"""This module contains Errors for the polywrap-msgpack package."""
[docs]class MsgpackError(Exception):
"""Base class for all exceptions in this module."""
[docs]class MsgpackDecodeError(MsgpackError):
"""Raised when there is an error decoding a msgpack object."""
[docs]class MsgpackEncodeError(MsgpackError):
"""Raised when there is an error encoding a msgpack object."""
[docs]class MsgpackExtError(MsgpackError):
"""Raised when there is an error with a msgpack extension."""
[docs]class MsgpackSanitizeError(MsgpackError):
"""Raised when there is an error sanitizing a python object\
into a msgpack encoder compatible format."""
__all__ = [
"MsgpackError",
"MsgpackDecodeError",
"MsgpackEncodeError",
"MsgpackExtError",
"MsgpackSanitizeError",
]