class_docstr: Class that raises a `TemplateSyntaxError` if called.
  Used by the `Lexer` to specify known errors.
class_docstr_tok: ["Class","that","raises","a","`","TemplateSyntaxError","`","if","called",".","Used","by","the","`","Lexer","`","to","specify","known","errors","."]
code: def __init__(
      self,
      message: str,
      cls: t.Type[TemplateSyntaxError] = TemplateSyntaxError,
  ) -> None:
      self.message = message
      self.error_class = cls
  
imports: import re
  import typing
  from ast import literal_eval
  from collections import deque
  from sys import intern
  from ._identifier import pattern
  from .exceptions import TemplateSyntaxError
  from .utils import LRUCache
label_desc: Use image node_id 1 to create a new Failure object  with example: obj = Failure(message, cls)