aboutsummaryrefslogtreecommitdiff
path: root/quality_control/errors.py
blob: fff6c7c2e5f594fd4a2b1b775c30216d5af28996 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
"""Hold exceptions for QC package"""

from collections import namedtuple

InvalidValue = namedtuple(
    "InvalidValue", ("line", "column", "value", "message"))

DuplicateHeading = namedtuple(
    "DuplicateHeading", ("line", "columns", "heading", "message"))

InconsistentColumns = namedtuple(
    "InconsistentColumns", ("line", "header_count", "contents_count", "message"))