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



]j1VddlmZddlmZddlmZddlmZGddeZeGddeeeZ	Gd	d
e	Z
eGddeZGd
deZGddeZ
Gdde
ZGdde
ZGdde
ZdS))imap)implements_to_string)PY2)	text_typec\eZdZdZerddZedZdZdSddZedZdS)	
TemplateErrorz"Baseclass for all template errors.Nc|"t|d}t||dS)Nutf-8)rencode	Exception__init__selfmessages  q/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/jinja2/exceptions.pyr
zTemplateError.__init__
s?"#G,,33G<<tW-----cb|jr%|jd}||ddSdSdS)Nr
replace)argsdecoders  rrzTemplateError.messagesAy
>)A,&">>'9===
>
>&&rc|jpdS)Nrrs r__unicode__zTemplateError.__unicode__s<&3&rc<t||dSN)rr
rs  rr
zTemplateError.__init__stW-----rc:|jr|jd}||SdSdS)Nr)rrs  rrzTemplateError.message!s2y
#)A,&"N
#
#&&rr)	__name__
__module____qualname____doc__rr
propertyrrrrrrs,,
#	.	.	.	.

	>	>
	>	'	'	'	'	'
	.	.	.	.
	#	#
	#	#	#rrc$eZdZdZdZddZdZdS)TemplateNotFoundzRaised 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.
    Nct|||,ddlm}t	||r||}||_||_|g|_dS)Nr	Undefined)	IOErrorr
runtimer*
isinstance_fail_with_undefined_errorrname	templates)rr/rr*s    rr
zTemplateNotFound.__init__6sst$$$?******$	**
2//111G	rc|jSrrrs r__str__zTemplateNotFound.__str__Es
|rr)r r!r"r#rr
r2r%rrr'r')sHG
 
 
 
 rr'ceZdZdZddZdS)TemplatesNotFoundaLike :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%Ncn|xddlm}g}|D]B}t||r||j-||Cddt
t|z}t	||r|dpd|t||_dS)Nrr)z(none of the templates given were found: z, )r,r*r-append_undefined_messagejoinrrr'r
listr0)rnamesrr*partsr/s      rr
zTemplatesNotFound.__init__Us?******E
'
'dI..'LL!89999LL&&&&AEJJY&&EEG	!!$(;%)(CtWMMMer)r%N)r r!r"r#r
r%rrr4r4Is2		%%%%%%rr4c&eZdZdZddZdZdZdS)TemplateSyntaxErrorzBRaised to tell the user that there is a problem with the template.Nct||||_||_||_d|_d|_dS)NF)rr
linenor/filenamesource
translated)rrr@r/rAs     rr
zTemplateSyntaxError.__init__lsAtW---	 
 rc|jr|jSd|jz}|jp|j}|rd|d|}|jd|zg}|jg	|j|jdz
}n#t$rd}YnwxYw|r*|d|	zd
|S)Nzline %dzFile "z", z  rz    
)rCrr@rAr/rB
splitlines
IndexErrorr7stripr9)rlocationr/lineslines     rr2zTemplateSyntaxError.__str__ws?	 <t{*})		:	:*.$$9Hth/;"
{--//a@




4Vdjjll2333zz%   s'A--A<;A<cD|j|j|j|j|jffSr)	__class__rr@r/rArs r
__reduce__zTemplateSyntaxError.__reduce__s"
~dk49dmTTTr)NN)r r!r"r#r
r2rNr%rrr>r>hsQLL	 	 	 	 !!!.UUUUUrr>ceZdZdZdS)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.
    Nr r!r"r#r%rrrPrPsrrPceZdZdZdS)TemplateRuntimeErrorzoA generic runtime error in the template engine.  Under some situations
    Jinja may raise this exception.
    NrQr%rrrSrSrrSceZdZdZdS)UndefinedErrorz<Raised if a template tries to operate on :class:`Undefined`.NrQr%rrrVrVsFFFFrrVceZdZdZdS)
SecurityErrorzWRaised if a template tries to do something insecure if the
    sandbox is enabled.
    NrQr%rrrXrXrTrrXceZdZdZdS)FilterArgumentErrorzQThis error is raised if a filter was called with inappropriate
    arguments
    NrQr%rrrZrZrTrrZN)_compatrrrrrrr+LookupErrorr'r4r>rPrSrVrXrZr%rr<module>r]s))))))#####I###Bw]>%%%%%(%%%>*U*U*U*U*U-*U*U*UZ0=GGGGG)GGG(.r
Back to Directory File Manager