Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/jinja2/__pycache__/exceptions.cpython-37.pyc

60 lines
4.9 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
<00>/<2F>]L<00>@s<>dZddlmZmZmZmZGdd<04>de<06>ZeGdd<06>dee e<07><05>Z
Gdd<08>de
<EFBFBD>Z eGd d
<EFBFBD>d
e<07><03>Z Gd d <0C>d e <0C>Z Gd d<0E>de<07>ZGdd<10>de<0E>ZGdd<12>de<0E>ZGdd<14>de<0E>ZdS)z<>
jinja2.exceptions
~~~~~~~~~~~~~~~~~
Jinja exceptions.
:copyright: (c) 2017 by the Jinja Team.
:license: BSD, see LICENSE for more details.
<EFBFBD>)<04>imap<61> text_type<70>PY2<59>implements_to_stringc@sJeZdZdZer0d dd<04>Zedd<06><00>Zdd<08>Znd d d<04>Zed
d<06><00>ZdS) <0A> TemplateErrorz"Baseclass for all template errors.NcCs&|dk rt|<01><01>d<01>}t<02>||<01>dS)Nzutf-8)r<00>encode<64> Exception<6F>__init__)<02>self<6C>message<67>r <00>5/tmp/pip-install-c3kgu56x/Jinja2/jinja2/exceptions.pyr szTemplateError.__init__cCs(|jr$|jd}|dk r$|<01>dd<03>SdS)Nrzutf-8<>replace)<02>args<67>decode)r
r r r r r s
zTemplateError.messagecCs
|jpdS)N<>)r )r
r r r <00> __unicode__szTemplateError.__unicode__cCst<00>||<01>dS)N)rr )r
r r r r r !scCs |jr|jd}|dk r|SdS)Nr)r)r
r r r r r $s
)N)N) <09>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__rr <00>propertyr rr r r r rs
 

rc@s&eZdZdZdZddd<04>Zdd<06>ZdS)<08>TemplateNotFoundz$Raised if a template does not exist.NcCs.t<00>|<00>|dkr|}||_||_|g|_dS)N)<05>IOErrorr r <00>name<6D> templates)r
rr r r r r 4s 
zTemplateNotFound.__init__cCs|jS)N)r )r
r r r <00>__str__<szTemplateNotFound.__str__)N)rrrrr r rr r r r r,s
rc@seZdZdZddd<05>ZdS)<07>TemplatesNotFoundz<64>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.
.. versionadded:: 2.2
r NcCsD|dkrdd<02>tt|<01><02>}t<03>||r.|dp0d|<02>t|<01>|_dS)Nz(none of the templates given were found: z, <20><><EFBFBD><EFBFBD><EFBFBD>)<07>joinrrrr <00>listr)r
<00>namesr r r r r Hs
zTemplatesNotFound.__init__)r N)rrrrr r r r r r@src@s"eZdZdZddd<04>Zdd<06>ZdS)<08>TemplateSyntaxErrorzBRaised to tell the user that there is a problem with the template.NcCs.t<00>||<01>||_||_||_d|_d|_dS)NF)rr <00>linenor<00>filename<6D>source<63>
translated)r
r r#rr$r r r r Ts  zTemplateSyntaxError.__init__cCs<>|jr |jSd|j}|jp |j}|r2d||f}|jd|g}|jdk r<>y|j<05><06>|jd}Wntk
rzd}YnX|r<>|<03>d|<04> <09><00>d<06>
|<03>S)Nzline %dz File "%s", %sz <20>z <20>
) r&r r#r$rr%<00>
splitlines<EFBFBD>
IndexError<EFBFBD>append<6E>stripr)r
<00>locationr<00>lines<65>liner r r r_s
  

zTemplateSyntaxError.__str__)NN)rrrrr rr r r r r"Ps
r"c@seZdZdZdS)<03>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)rrrrr r r r r0wsr0c@seZdZdZdS)<03>TemplateRuntimeErrorzoA generic runtime error in the template engine. Under some situations
Jinja may raise this exception.
N)rrrrr r r r r1sr1c@seZdZdZdS)<03>UndefinedErrorz<Raised if a template tries to operate on :class:`Undefined`.N)rrrrr r r r r2<00>sr2c@seZdZdZdS)<03> SecurityErrorzWRaised if a template tries to do something insecure if the
sandbox is enabled.
N)rrrrr r r r r3<00>sr3c@seZdZdZdS)<03>FilterArgumentErrorzQThis error is raised if a filter was called with inappropriate
arguments
N)rrrrr r r r r4<00>sr4N)rZjinja2._compatrrrrrrr<00> LookupErrorrrr"r0r1r2r3r4r r r r <00><module>
s   &