2019-09-09 15:45:35 +08:00
|
|
|
from libp2p.exceptions import BaseLibp2pError
|
|
|
|
|
|
|
|
|
|
|
|
class MuxedConnError(BaseLibp2pError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2019-09-12 17:07:41 +08:00
|
|
|
class MuxedConnShuttingDown(MuxedConnError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class MuxedConnClosed(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
|