code: def parse_error(
          self, exception=ParseError, *args
      ):  # type: (ParseError.__class__, ...) -> ParseError
          
          line, col = self._to_linecol()
  
          return exception(line, col, *args)
docs: Creates a generic "parse error" at the current position.