Exceptions
liquid2.exceptions.LiquidError
Bases: Exception
Base class for all Liquid exceptions.
context
Return context information for this error.
Returns (line, col, previous line, current line, next line) or None if no context information is available.
liquid2.exceptions.BreakLoop
Bases: LiquidInterrupt
Exception raised when a BreakNode is rendered.
liquid2.exceptions.ContextDepthError
Bases: ResourceLimitError
Exception raised when the maximum context depth is reached.
Usually indicates recursive use of render
or include
tags.
liquid2.exceptions.ContinueLoop
Bases: LiquidInterrupt
Exception raised when a ContinueNode is rendered.
liquid2.exceptions.DisabledTagError
liquid2.exceptions.LiquidEnvironmentError
liquid2.exceptions.LiquidIndexError
liquid2.exceptions.LiquidInterrupt
Bases: Exception
Loop interrupt exception.
liquid2.exceptions.LiquidNameError
liquid2.exceptions.LiquidSyntaxError
liquid2.exceptions.LiquidTypeError
liquid2.exceptions.LiquidValueError
liquid2.exceptions.LocalNamespaceLimitError
liquid2.exceptions.LoopIterationLimitError
liquid2.exceptions.OutputStreamLimitError
liquid2.exceptions.RequiredBlockError
liquid2.exceptions.ResourceLimitError
liquid2.exceptions.StopRender
Bases: Exception
Template inheritance interrupt.
An interrupt used to signal that BoundTemplate.render_with_context
should stop
rendering more nodes. This is used by template inheritance tags and is not an error
condition.
liquid2.exceptions.TemplateInheritanceError
Bases: LiquidError
An exceptions raised when template inheritance tags are used incorrectly.
This could occur when parsing a template or at render time.