aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/exceptions.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2017-12-18 07:20:31 +1300
committerAldo Cortesi <aldo@nullcube.com>2017-12-18 17:02:48 +1300
commitb0b67fe2a7a7e8d220f6917f91248c0ba8a7d64e (patch)
treebd46fe963f29e11691143aad5ae82ea7f974f3eb /mitmproxy/exceptions.py
parentb1f923e1482bf95418c955a5867dcbd30e1a00ec (diff)
downloadmitmproxy-b0b67fe2a7a7e8d220f6917f91248c0ba8a7d64e.tar.gz
mitmproxy-b0b67fe2a7a7e8d220f6917f91248c0ba8a7d64e.tar.bz2
mitmproxy-b0b67fe2a7a7e8d220f6917f91248c0ba8a7d64e.zip
commands: refactor types
The type system was scattered over a number of places, making it hard to follow. This collects all command types in types.py, and completion, validation and parsing for each type is centralised. We should use the same mechanism for options.
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 71517480..d568898b 100644
--- a/mitmproxy/exceptions.py
+++ b/mitmproxy/exceptions.py
@@ -112,6 +112,10 @@ class AddonHalt(MitmproxyException):
pass
+class TypeError(MitmproxyException):
+ pass
+
+
"""
Net-layer exceptions
"""