2019-09-15 16:34:16 +08:00
|
|
|
from libp2p.io.exceptions import IOException
|
2019-09-09 15:45:35 +08:00
|
|
|
|
|
|
|
|
2019-09-15 16:34:16 +08:00
|
|
|
class StreamError(IOException):
|
2019-09-09 15:45:35 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class StreamEOF(StreamError, EOFError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class StreamReset(StreamError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class StreamClosed(StreamError):
|
|
|
|
pass
|