AlkantarClanX12

Your IP : 18.118.126.44


Current Path : /opt/imunify360/venv/lib/python3.11/site-packages/jinja2/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib/python3.11/site-packages/jinja2/__pycache__/exceptions.cpython-311.pyc

�

l��f1��V�ddlmZddlmZddlmZddlmZGd�de��ZeGd�deee����Z	Gd	�d
e	��Z
eGd�de����ZGd
�de��ZGd�de��Z
Gd�de
��ZGd�de
��ZGd�de
��ZdS)�)�imap)�implements_to_string)�PY2)�	text_typec�\�eZdZdZerdd�Zed���Zd�ZdSdd�Zed���ZdS)	�
TemplateErrorz"Baseclass for all template errors.Nc��|�"t|���d��}t�||��dS)N�utf-8)r�encode�	Exception�__init__��self�messages  �q/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/jinja2/exceptions.pyr
zTemplateError.__init__
s?���"�#�G�,�,�3�3�G�<�<�����t�W�-�-�-�-�-�c�b�|jr%|jd}|�|�dd��SdSdS)N�r
�replace)�args�decoders  rrzTemplateError.messagesA���y�
>��)�A�,���&�"�>�>�'�9�=�=�=�
>�
>�&�&rc��|jpdS)N��r�rs r�__unicode__zTemplateError.__unicode__s���<�&�3�&rc�<�t�||��dS�N)rr
rs  rr
zTemplateError.__init__s�����t�W�-�-�-�-�-rc�:�|jr|jd}|�|SdSdS)Nr)rrs  rrzTemplateError.message!s2���y�
#��)�A�,���&�"�N�
#�
#�&�&rr)	�__name__�
__module__�__qualname__�__doc__rr
�propertyrr�rrrrs�������,�,�
�#�	.�	.�	.�	.�

�	>�	>�
��	>�	'�	'�	'�	'�	'�
	.�	.�	.�	.�
�	#�	#�
��	#�	#�	#rrc�$�eZdZdZdZdd�Zd�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.
    Nc���t�||��|�,ddlm}t	||��r|���|}||_||_|g|_dS)Nr��	Undefined)	�IOErrorr
�runtimer*�
isinstance�_fail_with_undefined_errorr�name�	templates)rr/rr*s    rr
zTemplateNotFound.__init__6ss������t�$�$�$��?�*�*�*�*�*�*��$�	�*�*�
2��/�/�1�1�1��G������	������rc��|jSrrrs r�__str__zTemplateNotFound.__str__Es
���|�rr)r r!r"r#rr
r2r%rrr'r')sH���������G�
 �
 �
 �
 �����rr'c��eZdZdZdd�ZdS)�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
    r%Nc�n�|�xddlm}g}|D]B}t||��r|�|j���-|�|���Cdd�t
t|����z}t�	||r|dpd|��t|��|_dS)Nrr)z(none of the templates given were found: z, ���)r,r*r-�append�_undefined_message�joinrrr'r
�listr0)r�namesrr*�partsr/s      rr
zTemplatesNotFound.__init__Us����?�*�*�*�*�*�*��E��
'�
'���d�I�.�.�'��L�L��!8�9�9�9�9��L�L��&�&�&�&�A�E�J�J��Y��&�&�E�E��G�	�!�!�$��(;�%��)�(C�t�W�M�M�M��e������r)r%N)r r!r"r#r
r%rrr4r4Is2������	�	�%�%�%�%�%�%rr4c�&�eZdZdZdd�Zd�Zd�ZdS)�TemplateSyntaxErrorzBRaised to tell the user that there is a problem with the template.Nc��t�||��||_||_||_d|_d|_dS)NF)rr
�linenor/�filename�source�
translated)rrr@r/rAs     rr
zTemplateSyntaxError.__init__lsA�����t�W�-�-�-������	� ��
���� ����rc��|jr|jSd|jz}|jp|j}|rd|�d|��}|jd|zg}|j�g	|j���|jdz
}n#t$rd}YnwxYw|r*|�d|�	��z��d�
|��S)Nzline %dzFile "z", z  rz    �
)rCrr@rAr/rB�
splitlines�
IndexErrorr7�stripr9)r�locationr/�lines�lines     rr2zTemplateSyntaxError.__str__ws����?�	 ��<���t�{�*���}�)��	���	:�	:�*.�$�$���9�H���t�h��/���;�"�
��{�-�-�/�/���a��@�����
�
�
�����
�����
4����V�d�j�j�l�l�2�3�3�3��z�z�%� � � s�'A-�-A<�;A<c�D�|j|j|j|j|jffSr)�	__class__rr@r/rArs r�
__reduce__zTemplateSyntaxError.__reduce__�s"��
�~���d�k�4�9�d�m�T�T�Tr)NN)r r!r"r#r
r2rNr%rrr>r>hsQ������L�L�	 �	 �	 �	 �!�!�!�.U�U�U�U�Urr>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�r r!r"r#r%rrrPrP�s���������rrPc��eZdZdZdS)�TemplateRuntimeErrorzoA generic runtime error in the template engine.  Under some situations
    Jinja may raise this exception.
    NrQr%rrrSrS�����������rrSc��eZdZdZdS)�UndefinedErrorz<Raised if a template tries to operate on :class:`Undefined`.NrQr%rrrVrV�s������F�F�F�FrrVc��eZdZdZdS)�
SecurityErrorzWRaised if a template tries to do something insecure if the
    sandbox is enabled.
    NrQr%rrrXrX�rTrrXc��eZdZdZdS)�FilterArgumentErrorzQThis error is raised if a filter was called with inappropriate
    arguments
    NrQr%rrrZrZ�rTrrZN)�_compatrrrrrrr+�LookupErrorr'r4r>rPrSrVrXrZr%rr�<module>r]s��������)�)�)�)�)�)�������������#�#�#�#�#�I�#�#�#�B������w��]������>%�%�%�%�%�(�%�%�%�>�*U�*U�*U�*U�*U�-�*U�*U���*U�Z�����0���������=����G�G�G�G�G�)�G�G�G������(���������.�����r