Skip to content
Edit this page

TemplateSyntaxError

Base classes

Name Children Inherits
TemplateError
jinjarope.engine
Base class of the errors raised by template engines (all backends).
SyntaxError
builtins
Invalid syntax.

⋔ Inheritance diagram

graph TD
  3184221259["engine.TemplateSyntaxError"]
  2968505208["engine.TemplateError"]
  1615621424["builtins.Exception"]
  3224121899["builtins.BaseException"]
  2751680898["builtins.object"]
  473484763["builtins.SyntaxError"]
  2968505208 --> 3184221259
  1615621424 --> 2968505208
  3224121899 --> 1615621424
  2751680898 --> 3224121899
  473484763 --> 3184221259
  1615621424 --> 473484763

🛈 DocStrings

Bases: TemplateError, SyntaxError

A template could not be parsed (also a SyntaxError).

Source code in src/jinjarope/engine.py
class TemplateSyntaxError(TemplateError, SyntaxError):
    """A template could not be parsed (also a `SyntaxError`)."""

:fa-brands-github: Show source on GitHub