
    h                        S SK r\R                  (       a  SSKJr   " S S\5      r " S S\\\5      r	 " S S	\	5      r
 " S
 S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      rg)    N   	Undefinedc                      ^  \ rS rSrSrS	S\R                  \   SS4U 4S jjjr\	S\R                  \   4S j5       r
SrU =r$ )
TemplateError   z"Baseclass for all template errors.Nmessagereturnc                 $   > [         TU ]  U5        g N)super__init__)selfr	   	__class__s     I/var/www/auris/envauris/lib/python3.13/site-packages/jinja2/exceptions.pyr   TemplateError.__init__
   s    !    c                 F    U R                   (       a  U R                   S   $ S $ )Nr   )argsr   s    r   r	   TemplateError.message   s    #yytyy|2d2r    r   )__name__
__module____qualname____firstlineno____doc__tOptionalstrr   propertyr	   __static_attributes____classcell__r   s   @r   r   r      sI    ,"

3 "4 " " 3C 3 3r   r   c                       \ rS rSr% SrSr\R                  \   \	S'    SS\R                  \R                  \S4      S\R                  \   SS4S jjrS\4S	 jrS
rg)TemplateNotFound   zRaised 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	   namer   r
   c                     [         R                  X5        Uc(  SSKJn  [	        X5      (       a  UR                  5         UnX l        Xl        U/U l        g )Nr   r   )	IOErrorr   runtimer   
isinstance_fail_with_undefined_errorr	   r(   	templates)r   r(   r	   r   s       r   r   TemplateNotFound.__init__   sI    
 	$?*$**//1G	r   c                 ,    [        U R                  5      $ r   )r    r	   r   s    r   __str__TemplateNotFound.__str__1   s    4<<  r   )r	   r(   r.   r   )r   r   r   r   r   r	   r   r   r    __annotations__Unionr   r1   r"   r   r   r   r&   r&      sl      $GQZZ_#
 $( jjk!123  C  
	 &! !r   r&   c                      ^  \ rS rSrSr  S
S\R                  \R                  \S4      S\R                  \   SS4U 4S jjjr
S	rU =r$ )TemplatesNotFound5   ax  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
Nnamesr   r	   r
   c                 J  > Ucs  SSK Jn  / nU HA  n[        XS5      (       a  UR                  UR                  5        M0  UR                  U5        MC     SR                  [        [        U5      5      nSU 3n[        TU ]%  U(       a  US   OS U5        [        U5      U l        g )Nr   r   z, z(none of the templates given were found: )r+   r   r,   append_undefined_messagejoinmapr    r   r   listr.   )r   r8   r	   r   partsr(   	parts_strr   s          r   r   TemplatesNotFound.__init__A   s    
 ?*Ed..LL!8!89LL&	  		#c5/2I@LGerw?er   )r.   )r   N)r   r   r   r   r   r   Sequencer4   r    r   r   r"   r#   r$   s   @r   r6   r6   5   sU    	 8:#'%zz!''#{"234% C% 
	% %r   r6   c                      ^  \ rS rSrSr  SS\S\S\R                  \   S\R                  \   SS4
U 4S	 jjjr	S\4S
 jr
S rSrU =r$ )TemplateSyntaxErrorX   zBRaised to tell the user that there is a problem with the template.Nr	   linenor(   filenamer
   c                 d   > [         TU ]  U5        X l        X0l        X@l        S U l        SU l        g )NF)r   r   rG   r(   rH   source
translated)r   r	   rG   r(   rH   r   s        r   r   TemplateSyntaxError.__init__[   s1     	!	 '+  r   c                 2   U R                   (       a%  [        R                  " [        U R                  5      $ SU R
                   3nU R                  =(       d    U R                  nU(       a  SU SU 3n[        R                  " [        U R                  5      SU-   /nU R                  bM   U R                  R                  5       U R
                  S-
     nUR                  SUR                  5       -   5        SR                  U5      $ ! [         a     Nf = f)Nzline zFile "z", z  r   z    
)rK   r   castr    r	   rG   rH   r(   rJ   
splitlinesr;   strip
IndexErrorr=   )r   locationr(   lineslines        r   r1   TemplateSyntaxError.__str__l   s    ??66#t||,, 4;;-(}})		vS
3HT\\*D8O< ;;"4{{--/a@ Vdjjl23yy  s   ,*D	 	
DDc                 v    U R                   U R                  U R                  U R                  U R                  44$ r   )r   r	   rG   r(   rH   r   s    r   
__reduce__TemplateSyntaxError.__reduce__   s,    
 ~~dkk499dmmTTTr   )rH   rG   r(   rJ   rK   )NN)r   r   r   r   r   r    intr   r   r   r1   rX   r"   r#   r$   s   @r   rE   rE   X   sp    L !%$(     jjo	 
 **S/  
   "   .U Ur   rE   c                       \ rS rSrSrSrg)TemplateAssertionError   zLike 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.
r   Nr   r   r   r   r   r"   r   r   r   r\   r\      s    r   r\   c                       \ rS rSrSrSrg)TemplateRuntimeError   zgA generic runtime error in the template engine.  Under some situations
Jinja may raise this exception.
r   Nr^   r   r   r   r`   r`          r   r`   c                       \ rS rSrSrSrg)UndefinedError   z<Raised if a template tries to operate on :class:`Undefined`.r   Nr^   r   r   r   rd   rd      s    Fr   rd   c                       \ rS rSrSrSrg)SecurityError   zORaised if a template tries to do something insecure if the
sandbox is enabled.
r   Nr^   r   r   r   rg   rg      rb   r   rg   c                       \ rS rSrSrSrg)FilterArgumentError   zIThis error is raised if a filter was called with inappropriate
arguments
r   Nr^   r   r   r   rj   rj      rb   r   rj   )typingr   TYPE_CHECKINGr+   r   	Exceptionr   r*   LookupErrorr&   r6   rE   r\   r`   rd   rg   rj   r   r   r   <module>rp      s    ??"3I 3 !w]  !F %(  %F0U- 0Uf0 = G) G( . r   