'Raise exception to signal syntax error in regexp.'

def error(self, mess):

    raise RegexpSyntaxError(('Syntax    error    in    regexp    %s    at    position    %d:    %s' % (repr(self.s), self.i, mess)))
