class ParseError(Exception):

    def __init__(self, parser_input, line, column):
        self.input = parse_input
self.line = line
self.column = column

def __str__(self):
    pass
How to handle exceptions in python conceptually?