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

88 lines
8.4 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
<00>/<2F>]<5D><00>@s<>ddlmZmZmZddlmZdd<04>ZGdd<06>de<07>ZGdd<08>de<08>Z Gd d
<EFBFBD>d
e <09>Z
Gd d <0C>d e
<EFBFBD>Z Gd d<0E>de <09>Z Gdd<10>de <09>Z Gdd<12>de <09>ZGdd<14>de<08>ZGdd<16>de<10>ZGdd<18>de<10>ZdS)<1A>)<03>PY2<59>filename_to_ui<75>get_text_stderr)<01>echocCs&t|ttf<02>r"d<01>dd<03>|D<00><01>S|S)Nz / css|]}d|VqdS)z"%s"N<>)<02>.0<EFBFBD>xrr<00>3/tmp/pip-install-c3kgu56x/click/click/exceptions.py<70> <genexpr>sz$_join_param_hints.<locals>.<genexpr>)<04>
isinstance<EFBFBD>tuple<6C>list<73>join)<01>
param_hintrrr <00>_join_param_hintssrc@sFeZdZdZdZdd<04>Zdd<06>Zdd<08>Zer8eZ d d<08>Zd d d <0C>Z
d
S)<0E>ClickExceptionz8An exception that Click can handle and show to the user.rcCs0|}tr|dk r|<02>d<01>}t<02>||<02>||_dS)Nzutf-8)r<00>encode<64> Exception<6F>__init__<5F>message)<03>selfrZctor_msgrrr rs 
 zClickException.__init__cCs|jS)N)r)rrrr <00>format_messageszClickException.format_messagecCs|jS)N)r)rrrr <00>__str__szClickException.__str__cCs |j<00>d<01>S)Nzutf-8)rr)rrrr r"sNcCs&|dkrt<00>}td|<00><02>|d<02>dS)Nz Error: %s)<01>file)rrr)rrrrr <00>show%szClickException.show)N) <0B>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F> exit_coderrrr<00> __unicode__rrrrr r src@s(eZdZdZdZddd<05>Zd dd<07>ZdS)
<EFBFBD>
UsageErrora+An internal exception that signals a usage error. This typically
aborts any further handling.
:param message: the error message to display.
:param ctx: optionally the context that caused this error. Click will
fill in the context automatically in some situations.
<20>NcCs*t<00>||<01>||_|jr |jjp"d|_dS)N)rr<00>ctx<74>command<6E>cmd)rrr#rrr r5s zUsageError.__init__cCs<>|dkrt<00>}d}d}|jdk rJ|j<01>|j<03>dk rJd|jj|jjdf}|jdk rx|jj}t|j<03><08>d|||d<05>td|<00> <09>||d<05>dS)N<>zTry "%s %s" for help.
<EFBFBD>z
%s)r<00>colorz Error: %s)
rr%Zget_help_optionr#Z command_pathZhelp_option_namesr(r<00> get_usager)rrr(<00>hintrrr r:s

zUsageError.show)N)N)rrrrrrrrrrr r!+s
r!c@s"eZdZdZddd<04>Zdd<06>ZdS)<08> BadParametera An exception that formats out a standardized error message for a
bad parameter. This is useful when thrown from a callback or type as
Click will attach contextual information to it (for instance, which
parameter it is).
.. versionadded:: 2.0
:param param: the parameter object that caused this error. This can
be left out, and Click will attach this info itself
if possible.
:param param_hint: a string that shows up as parameter name. This
can be used as alternative to `param` in cases
where custom validation should happen. If it is
a string it's used as such, if it's a list then
each item is quoted and separated.
NcCst<00>|||<02>||_||_dS)N)r!r<00>paramr)rrr#r,rrrr r[szBadParameter.__init__cCsL|jdk r|j}n$|jdk r,|j<01>|j<03>}n
d|jSt|<01>}d||jfS)NzInvalid value: %szInvalid value for %s: %s)rr,<00>get_error_hintr#rr)rrrrr ras


zBadParameter.format_message)NNN)rrrrrrrrrr r+Is
r+c@s"eZdZdZddd<04>Zdd<06>ZdS)<08>MissingParametera<72>Raised if click required an option or argument but it was not
provided when invoking the script.
.. versionadded:: 4.0
:param param_type: a string that indicates the type of the parameter.
The default is to inherit the parameter type from
the given `param`. Valid values are ``'parameter'``,
``'option'`` or ``'argument'``.
NcCst<00>|||||<04>||_dS)N)r+r<00>
param_type)rrr#r,rr/rrr ryszMissingParameter.__init__cCs<>|jdk r|j}n|jdk r,|j<01>|j<03>}nd}t|<01>}|j}|dkrX|jdk rX|jj}|j}|jdk r<>|jj<08> |j<01>}|r<>|r<>|d|7}n|}d||r<>d|p<>d|r<>dp<>d|p<>dfS)Nz. zMissing %s%s%s%sz %sr&<00>.)
rr,r-r#rr/Zparam_type_namer<00>typeZget_missing_message)rrr/<00>msgZ msg_extrarrr r~s*



zMissingParameter.format_message)NNNNN)rrrrrrrrrr r.ms

r.c@s"eZdZdZddd<04>Zdd<06>ZdS)<08> NoSuchOptionzfRaised if click attempted to handle an option that does not
exist.
.. versionadded:: 4.0
NcCs.|dkrd|}t<00>|||<04>||_||_dS)Nzno such option: %s)r!r<00> option_name<6D> possibilities)rr4rr5r#rrr r<00>s
zNoSuchOption.__init__cCsZ|jg}|jrPt|j<01>dkr2|<01>d|jd<00>nt|j<01>}|<01>dd<05>|<02><00>d<06>|<01>S)NrzDid you mean %s?r'z(Possible options: %s)z, z )rr5<00>len<65>append<6E>sortedr)r<00>bitsr5rrr r<00>s
zNoSuchOption.format_message)NNN)rrrrrrrrrr r3<00>s
r3c@seZdZdZddd<04>ZdS)<06>BadOptionUsageaRaised if an option is generally supplied but the use of the option
was incorrect. This is for instance raised if the number of arguments
for an option is not correct.
.. versionadded:: 4.0
:param option_name: the name of the option being used incorrectly.
NcCst<00>|||<03>||_dS)N)r!rr4)rr4rr#rrr r<00>szBadOptionUsage.__init__)N)rrrrrrrrr r:<00>sr:c@seZdZdZddd<04>ZdS)<06>BadArgumentUsagez<65>Raised if an argument is generally supplied but the use of the argument
was incorrect. This is for instance raised if the number of values
for an argument is not correct.
.. versionadded:: 6.0
NcCst<00>|||<02>dS)N)r!r)rrr#rrr r<00>szBadArgumentUsage.__init__)N)rrrrrrrrr r;<00>sr;c@s"eZdZdZddd<04>Zdd<06>ZdS)<08> FileErrorz"Raised if a file cannot be opened.NcCs0t|<01>}|dkrd}t<01>||<02>||_||_dS)Nz unknown error)rrr<00> ui_filename<6D>filename)rr>r*r=rrr r<00>s  zFileError.__init__cCsd|j|jfS)NzCould not open file %s: %s)r=r)rrrr r<00>szFileError.format_message)N)rrrrrrrrrr r<<00>s
r<c@seZdZdZdS)<03>Abortz=An internal signalling exception that signals Click to abort.N)rrrrrrrr r?<00>sr?c@seZdZdZddd<04>ZdS)<07>Exitz<74>An exception that indicates that the application should exit with some
status code.
:param code: the status code to exit with.
r'cCs
||_dS)N)r)r<00>coderrr r<00>sz Exit.__init__N)r')rrrrrrrrr r@<00>sr@N)<13>_compatrrr<00>utilsrrrrr!r+r.r3r:r;r<<00> RuntimeErrorr?r@rrrr <00><module>s  $/