"""Hold exceptions for QC package""" class InvalidCellValue(Exception): """Raised when a function encounters an invalid value""" def __init__(self, *args): super().__init__(self, *args) class InvalidHeaderValue(Exception): """Raised when a header contains values not in the reference file.""" def __init__(self, *args): super().__init__(self, *args) class DuplicateHeader(Exception): """Raised when a header contains 2 similar headers.""" def __init__(self, *args): super().__init__(self, *args) class ParseError(Exception): """Raised if any of the above exceptions are raised""" def __init__(self, *args): super().__init__(self, *args)