diff options
Diffstat (limited to 'libmproxy/exceptions.py')
-rw-r--r-- | libmproxy/exceptions.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libmproxy/exceptions.py b/libmproxy/exceptions.py index 7d80ce31..0e11c136 100644 --- a/libmproxy/exceptions.py +++ b/libmproxy/exceptions.py @@ -16,13 +16,11 @@ class ProxyException(Exception): message: the error message cause: (optional) an error object that caused this exception, e.g. an IOError. """ - def __init__(self, message, cause=None): + def __init__(self, message): """ :param message: Error Message - :param cause: Exception object that caused this exception to be thrown. """ super(ProxyException, self).__init__(message) - self.cause = cause class ProtocolException(ProxyException): @@ -34,8 +32,9 @@ class TlsException(ProtocolException): class ClientHandshakeException(TlsException): - # This subclass is quite useful to give hints about cert errors. - pass + def __init__(self, message, server): + super(ClientHandshakeException, self).__init__(message) + self.server = server class Socks5Exception(ProtocolException): |