Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
exceptions.cpython-313.pyc62 linesDownload Raw Back to __pycache__
1�

2��j����SSKr\R(aSSKJr "SS\5r"SS\\\5r	"SS	\	5r3"S4S\5r"SS
\5r"SS\5r
"SS\
5r"SS\
5r"SS\
5rg)�N���	Undefinedc�^�\rSrSrSrS	S\R\SS4U4Sjjjr\	S\R\4Sj5r5SrU=r$)6�
TemplateError�z"Baseclass for all template errors.N�message�returnc�$>�[TU]U5 g�N)�super�__init__)�selfr	�	__class__s  ��WD:\code\apps\devtools\python\user_packages\Python313\site-packages\jinja2/exceptions.pyr�TemplateError.__init__7s���
����!�c�F�UR(aURS$S$)Nr)�args�rs rr	�TemplateError.message
s��#�y�y�t�y�y��|�2�d�2r�r)
�__name__�8__module__�__qualname__�__firstlineno__�__doc__�t�Optional�strr�propertyr	�__static_attributes__�
__classcell__�rs@rrrsI���,�"��9�10�3��"�4�"�"��3����C��3��3rrc��\rSrSr%SrSr\R\\	S'SS\R\R\S4S\R\SS4SjjrS\4S	jrS11r
g)�TemplateNotFound�z�Raised if a template does not exist.12 13.. versionchanged:: 2.1114    If the given name is :class:`Undefined` and no message was15    provided, an :exc:`UndefinedError` is raised.16Nr	�namerr17c��[RX5 Uc(SSKJn [	X5(aUR5 UnX lXlU/Ulg)Nrr)	�IOErrorr�runtimer�18isinstance�_fail_with_undefined_errorr	r(�	templates)rr(r	rs    rr�TemplateNotFound.__init__sI��19	����$��?�*��$�*�*��/�/�1��G����	����rc�,�[UR5$r)r r	rs r�__str__�TemplateNotFound.__str__1s���4�<�<� � r)r	r(r.r)rrrrrr	rrr �__annotations__�Unionrr1r"rrrr&r&sl��� $�G�Q�Z�Z��_�#�20$(� ��j�j�����k�!1�2�3� ����C�� �21�	 �&!��!rr&c�^�\rSrSrSrS22S\R\R\S4S\R\SS4U4Sjjjr23S	rU=r$)�TemplatesNotFound�5axLike :class:`TemplateNotFound` but raised if multiple templates24are selected.  This is a subclass of :class:`TemplateNotFound`25exception, so just catching the base exception will catch both.26 27.. versionchanged:: 2.1128    If a name in the list of names is :class:`Undefined`, a message29    about it being undefined is shown rather than the empty string.30 31.. versionadded:: 2.232N�namesrr	r33c�J>�UcsSSKJn /nUHAn[XS5(aURUR5 M0URU5 MC SR[
[U55nSU3n[TU]%U(aUSOSU5 [U5Ulg)Nrrz, z(none of the templates given were found: �����)r+rr,�append�_undefined_message�join�mapr r
r�listr.)rr8r	r�partsr(�	parts_strrs       �rr�TemplatesNotFound.__init__As����34�?�*��E����d�.�.��L�L��!8�!8�9��L�L��&�	��	�	�#�c�5�/�2�I�@���L�G�
���e��r���w�?��e���r)r.)rN)
rrrrrr�Sequencer4r rrr"r#r$s@rr6r65sU���	�8:�#'�%��z�z�!�'�'�#�{�"2�3�4�%����C��%�35�	%�%rr6c�^�\rSrSrSrS
S\S\S\R\S\R\SS436U4S	jjjr	S\4S37jr38SrSrU=r
$)�TemplateSyntaxError�XzBRaised to tell the user that there is a problem with the template.Nr	�linenor(�filenamer39c�d>�[TU]U5 X lX0lX@lSUlSUlg)NF)r
rrGr(rH�source�40translated)rr	rGr(rHrs     �rr�TemplateSyntaxError.__init__[s1���	����!����	� �
�'+��� ��rc�2�UR(a%[R"[UR5$SUR413nUR=(d URnU(aSUSU3n[R"[UR5SU-/nURbMURR5UR42S-43nURSUR5-5 SRU5$![a Nf=f)Nzline zFile "z", z  rz    �44)rKr�castr r	rGrHr(rJ�45splitlinesr;�strip�46IndexErrorr=)r�locationr(�lines�lines     rr1�TemplateSyntaxError.__str__ls����?�?��6�6�#�t�|�|�,�,��4�;�;�-�(���}�}�)��	�	�����v�S��47�3�H�����T�\�\�*�D�8�O�<���;�;�"�
4��{�{�-�-�/����a��@�����V�d�j�j�l�2�3��y�y������
��
�s�,*D	�	48D�Dc�v�URURURURUR44$r)rr	rGr(rHrs r�49__reduce__�TemplateSyntaxError.__reduce__�s,��50�~�~����d�k�k�4�9�9�d�m�m�T�T�Tr)rHrGr(rJrK)NN)rrrrrr �intrrrr1rXr"r#r$s@rrErEXsp���L�!%�$(� �� �� ��j�j��o�	 �51�*�*�S�/� �52�
 � �" �� �.U�UrrEc��\rSrSrSrSrg)�TemplateAssertionError�z�Like a template syntax error, but covers cases where something in the53template caused an error at compile time that wasn't necessarily caused54by a syntax error.  However it's a direct subclass of55:exc:`TemplateSyntaxError` and has the same attributes.56rN�rrrrrr"rrrr\r\�s��rr\c��\rSrSrSrSrg)�TemplateRuntimeError�zgA generic runtime error in the template engine.  Under some situations57Jinja may raise this exception.58rNr^rrrr`r`����rr`c��\rSrSrSrSrg)�UndefinedError�z<Raised if a template tries to operate on :class:`Undefined`.rNr^rrrrdrd�s��Frrdc��\rSrSrSrSrg)�
SecurityError�zORaised if a template tries to do something insecure if the59sandbox is enabled.60rNr^rrrrgrg�rbrrgc��\rSrSrSrSrg)�FilterArgumentError�zIThis error is raised if a filter was called with inappropriate61arguments62rNr^rrrrjrj�rbrrj)�typingr�
TYPE_CHECKINGr+r�	Exceptionrr*�LookupErrorr&r6rEr\r`rdrgrjrrr�<module>rps�����?�?�"�3�I�3� !�w��]� !�F %�(� %�F0U�-�0U�f�0���=��G�)�G��(���.�r
codekingpro/portable-devtools · Team Ai