diff options
author | Frederick Muriuki Muriithi | 2022-04-11 15:24:31 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-04-11 15:24:31 +0300 |
commit | f15fac33627952ccf5d85a8c363b6d829c03b90d (patch) | |
tree | ce6887411a581f952dbaa44963fb88415dd88d05 /quality_control/errors.py | |
parent | ec30480a7121956b0ccde353180d1656fce866af (diff) | |
download | gn-uploader-f15fac33627952ccf5d85a8c363b6d829c03b90d.tar.gz |
Add tests for headers
* Add tests to check for validity of the headers
* Add stubs for the tests
Diffstat (limited to 'quality_control/errors.py')
-rw-r--r-- | quality_control/errors.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/quality_control/errors.py b/quality_control/errors.py index 961ce8e..a77039b 100644 --- a/quality_control/errors.py +++ b/quality_control/errors.py @@ -3,6 +3,11 @@ class InvalidValue(Exception): """Raised when a function encounters an invalid value""" - def __init__(self, args): - Exception.__init__(self, args) - + def __init__(self, *args): + Exception.__init__(self, *args) + +class InvalidHeaderValue(Exception): + """Raised when a header contains values not in the reference file.""" + + def __init__(self, *args): + Exception.__init__(self, *args) |