File "exceptions.cpython-37.opt-1.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python37/lib/python3.7/site-packages/jinja2/__pycache__/exceptions.cpython-37.opt-1.pyc
File size: 5.42 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit

B

:`@sddlZejrddlmZGdddeZGdddeeeZ	Gdd	d	e	Z
Gd
ddeZGdd
d
eZGdddeZ
Gddde
ZGddde
ZGddde
ZdS)N)	UndefinedcsHeZdZdZd	ejeddfdd
ZeejedddZ	Z
S)

TemplateErrorz"Baseclass for all template errors.N)messagereturncst|dS)N)super__init__)selfr)	__class__B/opt/alt/python37/lib/python3.7/site-packages/jinja2/exceptions.pyr
szTemplateError.__init__)rcCs|jr|jdSdS)Nr)args)r	rrrr
szTemplateError.message)N)__name__
__module____qualname____doc__tOptionalstrrpropertyr
__classcell__rr)r
rrsrc@s\eZdZUdZdZejeed<dejej	edfejeddddZ
edd	d
ZdS)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.
    Nrr)namerrcCsNt|||dkr6ddlm}t||r2||}||_||_|g|_dS)Nr)r)	IOErrorrruntimer
isinstanceZ_fail_with_undefined_errorrr	templates)r	rrrrrrrs
zTemplateNotFound.__init__)rcCs
t|jS)N)rr)r	rrr__str__1szTemplateNotFound.__str__)N)rrrrrrrr__annotations__Unionrrrrrrrs

rcsBeZdZdZdejejedfejeddfdd
Z	Z
S)	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
    rNr)namesrrcs|dkrbddlm}g}x.|D]&}t||r:||jq||qWdtt|}d|}t	|rt|dnd|t
||_dS)Nr)rz, z(none of the templates given were found: )rrrappendZ_undefined_messagejoinmaprrrlistr)r	r!rrpartsrZ	parts_str)r
rrrAs


zTemplatesNotFound.__init__)rN)rrrrrSequencerrrrrrr)r
rr 5s
r csReZdZdZdeeejeejeddfdd
ZedddZ	d	d
Z
ZS)TemplateSyntaxErrorzBRaised to tell the user that there is a problem with the template.N)rlinenorfilenamercs.t|||_||_||_d|_d|_dS)NF)rrr*rr+source
translated)r	rr*rr+)r
rrr[szTemplateSyntaxError.__init__)rcCs|jrtt|jSd|j}|jp*|j}|r@d|d|}tt|jd|g}|jdk	ry|j	|jd}Wnt
k
rYnX|d|d
|S)Nzline zFile "z", z  rz    
)r-rcastrrr*r+rr,
splitlines
IndexErrorr#stripr$)r	locationrlineslinerrrrls
zTemplateSyntaxError.__str__cCs|j|j|j|j|jffS)N)r
rr*rr+)r	rrr
__reduce__szTemplateSyntaxError.__reduce__)NN)rrrrrintrrrrr6rrr)r
rr)Xsr)c@seZdZdZdS)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)rrrrrrrrr8sr8c@seZdZdZdS)TemplateRuntimeErrorzoA generic runtime error in the template engine.  Under some situations
    Jinja may raise this exception.
    N)rrrrrrrrr9sr9c@seZdZdZdS)UndefinedErrorz<Raised if a template tries to operate on :class:`Undefined`.N)rrrrrrrrr:sr:c@seZdZdZdS)
SecurityErrorzWRaised if a template tries to do something insecure if the
    sandbox is enabled.
    N)rrrrrrrrr;sr;c@seZdZdZdS)FilterArgumentErrorzQThis error is raised if a filter was called with inappropriate
    arguments
    N)rrrrrrrrr<sr<)typingrZ
TYPE_CHECKINGrr	ExceptionrrLookupErrorrr r)r8r9r:r;r<rrrr<module>s##3