Skip to content

TemplateRenderError

Base classes

Name Children Inherits
TemplateError
jinjarope.engine
Base class of the errors raised by template engines (all backends).
RuntimeError
builtins
Unspecified run-time error.

⋔ Inheritance diagram

graph TD
  1756943539["engine.TemplateRenderError"]
  2968505208["engine.TemplateError"]
  1615621424["builtins.Exception"]
  3224121899["builtins.BaseException"]
  2751680898["builtins.object"]
  4120348647["builtins.RuntimeError"]
  2968505208 --> 1756943539
  1615621424 --> 2968505208
  3224121899 --> 1615621424
  2751680898 --> 3224121899
  4120348647 --> 1756943539
  1615621424 --> 4120348647

🛈 DocStrings

Bases: TemplateError, RuntimeError

Rendering a template string failed (also a RuntimeError).

The original exception (an undefined variable, an exception raised by a filter, ...) is the __cause__.

Source code in src/jinjarope/engine.py
class TemplateRenderError(TemplateError, RuntimeError):
    """Rendering a template string failed (also a `RuntimeError`).

    The original exception (an undefined variable, an exception raised by a filter, ...)
    is the `__cause__`.
    """

:fa-brands-github: Show source on GitHub