/usr/local/lib/python3.6/site-packages/itsdangerous/__pycache__
Edit: /usr/local/lib/python3.6/site-packages/itsdangerous/__pycache__/exc.cpython-36.pyc (3339B)
3
_TBg† ã @ sŽ d dl Zd dlmZ ejej Zeje ZG dd„ deƒZG dd„ deƒZ G dd„ de ƒZ
G d d
„ d
e
ƒZG dd„ de ƒZG d
d„ deƒZ
dS )é N)Údatetimec s4 e Zd ZdZedœ‡ fdd„Zedœdd„Z‡ ZS )ÚBadDataz“Raised if bad data of any sort was encountered. This is the base
for all exceptions that ItsDangerous defines.
.. versionadded:: 0.15
)Úmessagec s t ƒ j|ƒ || _d S )N)ÚsuperÚ__init__r )Úselfr )Ú __class__© ú8/tmp/pip-build-0s3hx122/itsdangerous/itsdangerous/exc.pyr s zBadData.__init__)Úreturnc C s | j S )N)r )r r r r
Ú__str__ s zBadData.__str__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ústrr r Ú
__classcell__r r )r r
r s r c s* e Zd ZdZdeedœ‡ fdd„
Z‡ ZS )ÚBadSignaturez%Raised if a signature does not match.N)r Úpayloadc s t ƒ j|ƒ || _d S )N)r r r )r r r )r r r
r s zBadSignature.__init__)N)r
r r r r Ú
_t_opt_anyr r r r )r r
r s r c s2 e Zd ZdZdeeeje dœ‡ fdd„
Z ‡ Z
S )ÚBadTimeSignaturezbRaised if a time-based signature is invalid. This is a subclass
of :class:`BadSignature`.
N)r r Údate_signedc s t ƒ j||ƒ || _d S )N)r r r )r r r r )r r r
r * s
zBadTimeSignature.__init__)NN)r
r r r r r Ú_tÚOptionalr r r r r )r r
r % s r c @ s e Zd ZdZdS )ÚSignatureExpiredzrRaised if a signature timestamp is older than ``max_age``. This
is a subclass of :exc:`BadTimeSignature`.
N)r
r r r r r r r
r = s r c s. e Zd ZdZdeeeedœ‡ fdd„
Z‡ ZS )Ú BadHeaderz®Raised if a signed header is invalid in some form. This only
happens for serializers that have a header that goes with the
signature.
.. versionadded:: 0.24
N)r r ÚheaderÚoriginal_errorc s t ƒ j||ƒ || _|| _d S )N)r r r r )r r r r r )r r r
r K s zBadHeader.__init__)NNN) r
r r r r r Ú
_t_opt_excr r r r )r r
r C s r c s* e Zd ZdZdeedœ‡ fdd„
Z‡ ZS )Ú
BadPayloada4 Raised if a payload is invalid. This could happen if the payload
is loaded despite an invalid signature, or if there is a mismatch
between the serializer and deserializer. The original exception
that occurred during loading is stored on as :attr:`original_error`.
.. versionadded:: 0.15
N)r r c s t ƒ j|ƒ || _d S )N)r r r )r r r )r r r
r f s zBadPayload.__init__)N)r
r r r r r r r r r )r r
r ] s r )Ztypingr r r ZAnyr Ú Exceptionr r r r r r r r r r r
Ú
s