
    wdf                         d dl mZ d dl mZ  G d de          Z G d de          Z G d de          Z G d	 d
e          Z G d de          Z G d de          Z	dS )   )PY2)	text_typec                   B     e Zd ZdZdZ fdZd Zer	eZd Z xZ	S  xZ	S )BadDatazRaised if bad data of any sort was encountered. This is the base
    for all exceptions that itsdangerous defines.

    .. versionadded:: 0.15
    Nc                 h    t          t          |                               | |           || _        d S N)superr   __init__message)selfr   	__class__s     U/var/www/book.euthymeo.com/html/venv/lib/python3.11/site-packages/itsdangerous/exc.pyr
   zBadData.__init__   s.    gt%%dG444    c                 *    t          | j                  S r   )r   r   r   s    r   __str__zBadData.__str__   s    &&&r   c                 P    |                                                      d          S )Nzutf-8)__unicode__encoder   s    r   r   zBadData.__str__   s"    ##%%,,W555r   )
__name__
__module____qualname____doc__r   r
   r   r   r   __classcell__)r   s   @r   r   r      s          G    ' ' '  6	6 	6 	6 	6 	6 	6 	66 6 6 6r   r   c                       e Zd ZdZddZdS )BadSignaturez%Raised if a signature does not match.Nc                 J    t                               | |           || _        d S r   )r   r
   payload)r   r   r   s      r   r
   zBadSignature.__init__   s%    w''' r   r   r   r   r   r   r
    r   r   r   r      s.        //     r   r   c                       e Zd ZdZddZdS )BadTimeSignaturezbRaised if a time-based signature is invalid. This is a subclass
    of :class:`BadSignature`.
    Nc                 L    t                               | ||           || _        d S r   )r   r
   date_signed)r   r   r   r$   s       r   r
   zBadTimeSignature.__init__/   s*    dGW555 'r   )NNr   r    r   r   r"   r"   *   s2         ' ' ' ' ' 'r   r"   c                       e Zd ZdZdS )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   r&   c                       e Zd ZdZddZdS )	BadHeaderzRaised 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
    Nc                 Z    t                               | ||           || _        || _        d S r   )r   r
   headeroriginal_error)r   r   r   r*   r+   s        r   r
   zBadHeader.__init__H   s3    dGW555  -r   )NNNr   r    r   r   r(   r(   @   s2         	- 	- 	- 	- 	- 	-r   r(   c                       e Zd ZdZddZdS )
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
    Nc                 J    t                               | |           || _        d S r   )r   r
   r+   )r   r   r+   s      r   r
   zBadPayload.__init__]   s(    w''' -r   r   r   r    r   r   r-   r-   T   s2         - - - - - -r   r-   N)
_compatr   r   	Exceptionr   r   r"   r&   r(   r-   r    r   r   <module>r1      s0              6 6 6 6 6i 6 6 6.    7   ' ' ' ' '| ' ' '     '   - - - - - - - -(- - - - - - - - - -r   