parameters: (
          self,
          msg: str,
          lineno: t.Optional[int] = None,
          exc: t.Type[TemplateSyntaxError] = TemplateSyntaxError,
      )
docstring: Convenience method that raises `exc` with the message, passed
          line number or last line number as well as the current name and
          filename.
docstring_summary: Convenience method that raises `exc` with the message, passed
          line number or last line number as well as the current name and
          filename.
docstring_tokens: Convenience method that raises exc with the message passed line number or last line number as well as the current name and filename .
function: def fail(
          self,
          msg: str,
          lineno: t.Optional[int] = None,
          exc: t.Type[TemplateSyntaxError] = TemplateSyntaxError,
      ) -> "te.NoReturn":
          """Convenience method that raises `exc` with the message, passed
          line number or last line number as well as the current name and
          filename.
          """
          if lineno is None:
              lineno = self.stream.current.lineno
          raise exc(msg, lineno, self.name, self.filename)
function_tokens: def fail ( self , msg : str , lineno : t . Optional [ int ] = None , exc : t . Type [ TemplateSyntaxError ] = TemplateSyntaxError , ) -> "te.NoReturn" : if lineno is None : lineno = self . stream . current . lineno raise exc ( msg , lineno , self . name , self . filename )