py-libp2p/libp2p/io/exceptions.py

26 lines
404 B
Python
Raw Normal View History

2019-08-27 01:03:12 +08:00
from libp2p.exceptions import BaseLibp2pError
class IOException(BaseLibp2pError):
pass
class IncompleteReadError(IOException):
"""Fewer bytes were read than requested."""
class MsgioException(IOException):
pass
class MissingLengthException(MsgioException):
pass
class MissingMessageException(MsgioException):
pass
2019-10-17 15:34:11 +08:00
class DecryptionFailedException(MsgioException):
pass