aboutsummaryrefslogtreecommitdiff
path: root/quality_control/errors.py
blob: 01afa81694c10cfa068e1e443e8a2de9243585fd (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", ("filename", "line", "column", "value", "message"))

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

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