summaryrefslogtreecommitdiff
path: root/cross-project-tests/debuginfo-tests/dexter/dex/utils/Exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'cross-project-tests/debuginfo-tests/dexter/dex/utils/Exceptions.py')
-rw-r--r--cross-project-tests/debuginfo-tests/dexter/dex/utils/Exceptions.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/cross-project-tests/debuginfo-tests/dexter/dex/utils/Exceptions.py b/cross-project-tests/debuginfo-tests/dexter/dex/utils/Exceptions.py
index 39c0c2f16952..b636acbc0cee 100644
--- a/cross-project-tests/debuginfo-tests/dexter/dex/utils/Exceptions.py
+++ b/cross-project-tests/debuginfo-tests/dexter/dex/utils/Exceptions.py
@@ -54,6 +54,14 @@ class CommandParseError(Dexception):
self.caret = None
+class NonFloatValueInCommand(CommandParseError):
+ """If a command has the float_range arg but at least one of its expected
+ values cannot be converted to a float."""
+
+ def __init__(self, *args, **kwargs):
+ super(NonFloatValueInCommand, self).__init__(*args, **kwargs)
+ self.value = None
+
class ToolArgumentError(Dexception):
"""If a tool argument is invalid."""
pass