parameters: (self, msg, lineno=None, exc=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, lineno=None, exc=TemplateSyntaxError):
          """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 , lineno = None , exc = TemplateSyntaxError ) : if lineno is None : lineno = self . stream . current . lineno raise exc ( msg , lineno , self . name , self . filename )