py-libp2p/libp2p/network/stream/exceptions.py

18 lines
226 B
Python
Raw Normal View History

from libp2p.io.exceptions import IOException
2019-09-09 15:45:35 +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