HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/jinja2/__pycache__/exceptions.cpython-310.pyc
o

�N�g��@s�ddlZejr
ddlmZGdd�de�ZGdd�deee�Z	Gdd	�d	e	�Z
Gd
d�de�ZGdd
�d
e�ZGdd�de�Z
Gdd�de
�ZGdd�de
�ZGdd�de
�ZdS)�N���	UndefinedcsJeZdZdZd	dejeddf�fdd�
Zedejefdd��Z	�Z
S)
�
TemplateErrorz"Baseclass for all template errors.N�message�returncst��|�dS�N)�super�__init__)�selfr��	__class__��E/opt/saltstack/salt/lib/python3.10/site-packages/jinja2/exceptions.pyr

szTemplateError.__init__cCs|jr|jdSdS)Nr)�args�rrrrr
szTemplateError.messager)�__name__�
__module__�__qualname__�__doc__�t�Optional�strr
�propertyr�
__classcell__rrrrrs
rc@sbeZdZUdZdZejeed<	ddejej	edfdejeddfdd�Z
defd	d
�ZdS)�TemplateNotFoundz�Raised if a template does not exist.

    .. versionchanged:: 2.11
        If the given name is :class:`Undefined` and no message was
        provided, an :exc:`UndefinedError` is raised.
    Nr�namerrcCsNt�||�|durddlm}t||�r|��|}||_||_|g|_dS)Nrr)	�IOErrorr
�runtimer�
isinstanceZ_fail_with_undefined_errorrr�	templates)rrrrrrrr
s
zTemplateNotFound.__init__cCs
t|j�Sr)rrrrrr�__str__1s
zTemplateNotFound.__str__r)rrrrrrrr�__annotations__�Unionr
r!rrrrrs
	���
�rcsJeZdZdZ		d
dejejedfdejeddf�fdd	�
Z	�Z
S)�TemplatesNotFounda�Like :class:`TemplateNotFound` but raised if multiple templates
    are selected.  This is a subclass of :class:`TemplateNotFound`
    exception, so just catching the base exception will catch both.

    .. versionchanged:: 2.11
        If a name in the list of names is :class:`Undefined`, a message
        about it being undefined is shown rather than the empty string.

    .. versionadded:: 2.2
    rN�namesrrrcs�|dur/ddlm}g}|D]}t||�r|�|j�q|�|�qd�tt|��}d|��}t��	|r8|dnd|�t
|�|_dS)Nrrz, z(none of the templates given were found: ���)rrr�appendZ_undefined_message�join�maprr	r
�listr )rr%rr�partsrZ	parts_strrrrr
As

zTemplatesNotFound.__init__)rN)rrrrr�Sequencer#rrr
rrrrrr$5s
����r$cs^eZdZdZ		ddededejedejeddf
�fdd	�
Zdefd
d�Z	dd
�Z
�ZS)�TemplateSyntaxErrorzBRaised to tell the user that there is a problem with the template.Nr�linenor�filenamercs.t��|�||_||_||_d|_d|_dS)NF)r	r
r.rr/�source�
translated)rrr.rr/rrrr
[s
zTemplateSyntaxError.__init__cCs�|jr
t�t|j�Sd|j��}|jp|j}|r d|�d|��}t�t|j�d|g}|jdurOz|j�	�|jd}Wn	t
yEYn
w|�d|���d�
|�S)Nzline zFile "z", z  rz    �
)r1r�castrrr.r/rr0�
splitlines�
IndexErrorr'�stripr()r�locationr�lines�linerrrr!ls
�
zTemplateSyntaxError.__str__cCs|j|j|j|j|jffSr)r
rr.rr/rrrr�
__reduce__�szTemplateSyntaxError.__reduce__)NN)rrrrr�intrrr
r!r:rrrrrr-Xs"������r-c@�eZdZdZdS)�TemplateAssertionErroraLike a template syntax error, but covers cases where something in the
    template caused an error at compile time that wasn't necessarily caused
    by a syntax error.  However it's a direct subclass of
    :exc:`TemplateSyntaxError` and has the same attributes.
    N�rrrrrrrrr=��r=c@r<)�TemplateRuntimeErrorzoA generic runtime error in the template engine.  Under some situations
    Jinja may raise this exception.
    Nr>rrrrr@�r?r@c@r<)�UndefinedErrorz<Raised if a template tries to operate on :class:`Undefined`.Nr>rrrrrA�r?rAc@r<)�
SecurityErrorzWRaised if a template tries to do something insecure if the
    sandbox is enabled.
    Nr>rrrrrB�r?rBc@r<)�FilterArgumentErrorzQThis error is raised if a filter was called with inappropriate
    arguments
    Nr>rrrrrC�r?rC)�typingrZ
TYPE_CHECKINGrr�	Exceptionrr�LookupErrorrr$r-r=r@rArBrCrrrr�<module>s##3