aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/http/exceptions.py')
-rw-r--r--netlib/http/exceptions.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/netlib/http/exceptions.py b/netlib/http/exceptions.py
new file mode 100644
index 00000000..8a2bbebc
--- /dev/null
+++ b/netlib/http/exceptions.py
@@ -0,0 +1,9 @@
+class HttpError(Exception):
+
+ def __init__(self, code, message):
+ super(HttpError, self).__init__(message)
+ self.code = code
+
+
+class HttpErrorConnClosed(HttpError):
+ pass