py-libp2p/libp2p/host/exceptions.py

14 lines
227 B
Python
Raw Normal View History

2019-09-21 17:18:55 +08:00
from libp2p.exceptions import BaseLibp2pError
class HostException(BaseLibp2pError):
"""A generic exception in `IHost`."""
2019-09-21 17:18:55 +08:00
class ConnectionFailure(HostException):
pass
class StreamFailure(HostException):
pass