1 2 3
class IncompatibleRowLengthError(Exception): def __init__(self, row_len: int): super().__init__(f"Incompatible row length, got {row_len}, expected 3")