diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-14 23:02:14 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-22 15:30:51 +0200 |
commit | f50deb7b763d093a22a4d331e16465a2fb0329cf (patch) | |
tree | a11e92fca2a0deffeb801cc6f931bd79aec0d669 /netlib/http/exceptions.py | |
parent | bd5ee212840e3be731ea93e14ef1375745383d88 (diff) | |
download | mitmproxy-f50deb7b763d093a22a4d331e16465a2fb0329cf.tar.gz mitmproxy-f50deb7b763d093a22a4d331e16465a2fb0329cf.tar.bz2 mitmproxy-f50deb7b763d093a22a4d331e16465a2fb0329cf.zip |
move bits around
Diffstat (limited to 'netlib/http/exceptions.py')
-rw-r--r-- | netlib/http/exceptions.py | 9 |
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 |