def make_error(self, line: str, regex: Pattern) -> Error:
    m = regex.match(line)
    if (not m):
        raise ValueError('unmatched line')
    lineno = int(m.group('lineno'))
    column = int((m.group('column') or 0))
    message = m.group('message').strip()
    if (m.group('class') == 'note'):
        return T400(lineno, column, vars=(message,))
    return T484(lineno, column, vars=(message,))
def make_error(self, line: str, regex: Pattern) -> Error:
    m = regex.match(line)
    if (not m):
        raise ValueError('unmatched line')
    lineno = int(m.group('lineno'))
    column = int((m.group('column') or 0))
    message = m.group('message').strip()
    if (m.group('class') == 'note'):
        return T400(lineno, column, vars=(message,))
    return T484(lineno, column, vars=(message,))