aboutsummaryrefslogtreecommitdiff
path: root/quality_control/errors.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-05-18 17:34:55 +0300
committerFrederick Muriuki Muriithi2022-05-18 17:36:16 +0300
commit347ca2fe50225b4736e69bb86d8b278818be40ac (patch)
treedf7fcab96bb0dfc44633e93b5875451dfd1af305 /quality_control/errors.py
parent8f32812ce73193366ee00d883fd427c830f5a8e9 (diff)
downloadgn-uploader-347ca2fe50225b4736e69bb86d8b278818be40ac.tar.gz
Remove obsoleted code. Fix linting errors.
Remove the old code that relied on exceptions to parse errors in the uploaded files.
Diffstat (limited to 'quality_control/errors.py')
-rw-r--r--quality_control/errors.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/quality_control/errors.py b/quality_control/errors.py
index 4206b5b..678fe09 100644
--- a/quality_control/errors.py
+++ b/quality_control/errors.py
@@ -2,29 +2,6 @@
from collections import namedtuple
-class InvalidCellValue(Exception):
- """Raised when a function encounters an invalid value"""
-
- def __init__(self, *args):
- super().__init__(*args)
-
-class InvalidHeaderValue(Exception):
- """Raised when a header contains values not in the reference file."""
-
- def __init__(self, *args):
- super().__init__(*args)
-
-class DuplicateHeader(Exception):
- """Raised when a header contains 2 similar headers."""
-
- def __init__(self, *args):
- super().__init__(*args)
-
-class ParseError(Exception):
- """Raised if any of the above exceptions are raised"""
- def __init__(self, *args):
- super().__init__(*args)
-
InvalidValue = namedtuple(
"InvalidValue", ("line", "column", "value", "message"))