Exceptions

We try to be very hygienic regarding the exceptions we throw: Every Exception mitmproxy raises shall be a subclass of ProxyException.

See also: http://lucumr.pocoo.org/2014/10/16/on-error-handling/

exception mitmproxy.exceptions.ProxyException(message=None)[source]

Bases: exceptions.Exception

Base class for all exceptions thrown by mitmproxy.

exception mitmproxy.exceptions.ProtocolException(message=None)[source]

Bases: mitmproxy.exceptions.ProxyException

exception mitmproxy.exceptions.TlsProtocolException(message=None)[source]

Bases: mitmproxy.exceptions.ProtocolException

exception mitmproxy.exceptions.ClientHandshakeException(message, server)[source]

Bases: mitmproxy.exceptions.TlsProtocolException

exception mitmproxy.exceptions.Socks5ProtocolException(message=None)[source]

Bases: mitmproxy.exceptions.ProtocolException

exception mitmproxy.exceptions.HttpProtocolException(message=None)[source]

Bases: mitmproxy.exceptions.ProtocolException

exception mitmproxy.exceptions.ServerException(message=None)[source]

Bases: mitmproxy.exceptions.ProxyException

exception mitmproxy.exceptions.ContentViewException(message=None)[source]

Bases: mitmproxy.exceptions.ProxyException

exception mitmproxy.exceptions.ReplayException(message=None)[source]

Bases: mitmproxy.exceptions.ProxyException

exception mitmproxy.exceptions.ScriptException(message=None)[source]

Bases: mitmproxy.exceptions.ProxyException