aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/exceptions.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-07-13 18:45:50 +1200
committerAldo Cortesi <aldo@nullcube.com>2016-07-13 18:45:50 +1200
commita20f8e9620c0cfcb40500113cbeb813a05a195bb (patch)
tree896877f7efb697cdeea9498ba2a6a4e493497dfe /mitmproxy/exceptions.py
parent2624911d75670afaff8631943d567bfa2b42d7b8 (diff)
downloadmitmproxy-a20f8e9620c0cfcb40500113cbeb813a05a195bb.tar.gz
mitmproxy-a20f8e9620c0cfcb40500113cbeb813a05a195bb.tar.bz2
mitmproxy-a20f8e9620c0cfcb40500113cbeb813a05a195bb.zip
More powerful Options scheme
This prepares us for the addon configuration mechanism and gives us a more flexible way to handle options changes. This changeset should spell the end of the current anti-pattern in our codebase where we duplicate data out of options onto the master when mutability is needed. From now on, Options can be the one source of thruth. - Change notifications - Rollback on error
Diffstat (limited to 'mitmproxy/exceptions.py')
-rw-r--r--mitmproxy/exceptions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mitmproxy/exceptions.py b/mitmproxy/exceptions.py
index 63bd8d3d..282784b6 100644
--- a/mitmproxy/exceptions.py
+++ b/mitmproxy/exceptions.py
@@ -95,3 +95,7 @@ class FlowReadException(ProxyException):
class ControlException(ProxyException):
pass
+
+
+class OptionsError(Exception):
+ pass