From 0df578d219ca9f230fa1c4995da586909dbc7a22 Mon Sep 17 00:00:00 2001 From: mhchia Date: Sat, 21 Sep 2019 17:18:55 +0800 Subject: [PATCH] Add the missing exceptions.py --- libp2p/host/exceptions.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libp2p/host/exceptions.py diff --git a/libp2p/host/exceptions.py b/libp2p/host/exceptions.py new file mode 100644 index 0000000..ce7b972 --- /dev/null +++ b/libp2p/host/exceptions.py @@ -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