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 libmproxy.exceptions.ProxyException(message=None)[source]

Bases: exceptions.Exception

Base class for all exceptions thrown by libmproxy.

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

Bases: libmproxy.exceptions.ProxyException

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

Bases: libmproxy.exceptions.ProtocolException

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

Bases: libmproxy.exceptions.TlsProtocolException

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

Bases: libmproxy.exceptions.ProtocolException

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

Bases: libmproxy.exceptions.ProtocolException

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

Bases: libmproxy.exceptions.ProxyException

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

Bases: libmproxy.exceptions.ProxyException

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

Bases: libmproxy.exceptions.ProxyException

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

Bases: libmproxy.exceptions.ProxyException