py-libp2p/libp2p/stream_muxer/exceptions.py

26 lines
371 B
Python
Raw Normal View History

2019-09-09 15:45:35 +08:00
from libp2p.exceptions import BaseLibp2pError
class MuxedConnError(BaseLibp2pError):
pass
class MuxedConnUnavailable(MuxedConnError):
2019-09-09 15:45:35 +08:00
pass
class MuxedStreamError(BaseLibp2pError):
pass
class MuxedStreamReset(MuxedStreamError):
pass
class MuxedStreamEOF(MuxedStreamError, EOFError):
pass
class MuxedStreamClosed(MuxedStreamError):
pass