
    ,h                        S SK Jr  S SKrS SKJr   " S S\5      r " S S\5      r " S S	\5      r " S
 S\5      r	 " S S\5      r
 " S S\5      rg)    )annotationsN)datetimec                  :   ^  \ rS rSrSrSU 4S jjrSS jrSrU =r$ )BadData   zRaised if bad data of any sort was encountered. This is the base
for all exceptions that ItsDangerous defines.

.. versionadded:: 0.15
c                0   > [         TU ]  U5        Xl        g N)super__init__message)selfr   	__class__s     H/var/www/auris/envauris/lib/python3.13/site-packages/itsdangerous/exc.pyr   BadData.__init__   s    !    c                    U R                   $ r	   r   )r   s    r   __str__BadData.__str__   s    ||r   r   )r   str)returnr   )	__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes____classcell__r   s   @r   r   r      s     r   r   c                  4   ^  \ rS rSrSrSSU 4S jjjrSrU =r$ )BadSignature   z%Raised if a signature does not match.c                0   > [         TU ]  U5        X l        g r	   )r
   r   payload)r   r   r$   r   s      r   r   BadSignature.__init__   s    ! &-r   )r$   r	   )r   r   r$   t.Any | Noner   r   r   r   r   r   r   r   r   s   @r   r!   r!      s    /- -r   r!   c                  B   ^  \ rS rSrSr  S     SU 4S jjjrSrU =r$ )BadTimeSignature$   zZRaised if a time-based signature is invalid. This is a subclass
of :class:`BadSignature`.
c                0   > [         TU ]  X5        X0l        g r	   )r
   r   date_signed)r   r   r$   r,   r   s       r   r   BadTimeSignature.__init__)   s     	* 'r   )r,   )NN)r   r   r$   r&   r,   zdatetime | Noner'   r   s   @r   r)   r)   $   s6     !%'+	'' ' %	' 'r   r)   c                      \ rS rSrSrSrg)SignatureExpired<   zjRaised if a signature timestamp is older than ``max_age``. This
is a subclass of :exc:`BadTimeSignature`.
 N)r   r   r   r   r   r   r1   r   r   r/   r/   <   s    r   r/   c                  H   ^  \ rS rSrSr   S       SU 4S jjjrSrU =r$ )	BadHeaderB   zRaised 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
c                <   > [         TU ]  X5        X0l        X@l        g r	   )r
   r   headeroriginal_error)r   r   r$   r6   r7   r   s        r   r   BadHeader.__init__J   s!     	* %+ 1?r   )r6   r7   )NNN)r   r   r$   r&   r6   r&   r7   Exception | Noner'   r   s   @r   r3   r3   B   sC     !%#+/?? ? 	?
 )? ?r   r3   c                  4   ^  \ rS rSrSrSSU 4S jjjrSrU =r$ )
BadPayload\   a   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
c                0   > [         TU ]  U5        X l        g r	   )r
   r   r7   )r   r   r7   r   s      r   r   BadPayload.__init__e   s    ! 1?r   )r7   r	   )r   r   r7   r9   r'   r   s   @r   r;   r;   \   s    ? ?r   r;   )
__future__r   typingtr   	Exceptionr   r!   r)   r/   r3   r;   r1   r   r   <module>rC      sW    "  i -7 -'| '0' ? ?4? ?r   