Add the missing exceptions.py
This commit is contained in:
parent
a27a817d50
commit
0df578d219
15
libp2p/host/exceptions.py
Normal file
15
libp2p/host/exceptions.py
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
from libp2p.exceptions import BaseLibp2pError
|
||||||
|
|
||||||
|
|
||||||
|
class HostException(BaseLibp2pError):
|
||||||
|
"""
|
||||||
|
A generic exception in `IHost`.
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
class ConnectionFailure(HostException):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class StreamFailure(HostException):
|
||||||
|
pass
|
Loading…
Reference in New Issue
Block a user