Format: application/x-python-code
⬇ Download File (3.3 KB)
   1  o
   2  
   3  .'h��@s�ddlmZddlZddlmZGdd�de�ZGdd�de�ZGdd	�d	e�ZGd
   4  d�de�Z	Gdd
   5  �d
   6  e�Z
   7  Gdd�de�ZdS)�)�annotationsN)�datetimecs,eZdZdZd	�fdd�Zd
   8  dd�Z�ZS)�BadDataz�Raised if bad data of any sort was encountered. This is the base
   9      for all exceptions that ItsDangerous defines.
  10  
  11      .. versionadded:: 0.15
  12      �message�strcst��|�||_dS�N)�super�__init__r)�selfr��	__class__��FC:\Users\shubh\Videos\agent\nova\Lib\site-packages\itsdangerous/exc.pyr	s
  13  zBadData.__init__�returncCs|jSr)r)r
  14  r
  15  r
  16  r�__str__szBadData.__str__)rr)rr)�__name__�
  17  __module__�__qualname__�__doc__r	r�
  18  __classcell__r
  19  r
  20  rrrsrc�$eZdZdZd	d
  21  �fdd�
  22  Z�ZS)�BadSignaturez%Raised if a signature does not match.Nrr�payload�t.Any | Nonec�t��|�||_dSr)rr	r)r
  23  rrrr
  24  rr	s
  25  zBadSignature.__init__r)rrrr�rrrrr	rr
  26  r
  27  rrrsrcs(eZdZdZ		dd�fd	d
  28  �
  29  Z�ZS)
  30  �BadTimeSignaturezbRaised if a time-based signature is invalid. This is a subclass
  31      of :class:`BadSignature`.
  32      Nrrrr�date_signed�datetime | Nonecst��||�||_dSr)rr	r)r
  33  rrrrr
  34  rr	)s
  35  
  36  zBadTimeSignature.__init__)NN)rrrrrrrr
  37  r
  38  rrr$s
  39  �rc@seZdZdZdS)�SignatureExpiredzrRaised if a signature timestamp is older than ``max_age``. This
  40      is a subclass of :exc:`BadTimeSignature`.
  41      N)rrrrr
  42  r
  43  r
  44  rr<srcs*eZdZdZ			dd
  45  �fd
  46  d�
  47  Z�ZS)�	BadHeaderz�Raised if a signed header is invalid in some form. This only
  48      happens for serializers that have a header that goes with the
  49      signature.
  50  
  51      .. versionadded:: 0.24
  52      Nrrrr�header�original_error�Exception | Nonecst��||�||_||_dSr)rr	r!r")r
  53  rrr!r"rr
  54  rr	Js
  55  zBadHeader.__init__)NNN)rrrrr!rr"r#rr
  56  r
  57  rrr Bs
  58  �r cr)�
  59  BadPayloada4Raised if a payload is invalid. This could happen if the payload
  60      is loaded despite an invalid signature, or if there is a mismatch
  61      between the serializer and deserializer. The original exception
  62      that occurred during loading is stored on as :attr:`original_error`.
  63  
  64      .. versionadded:: 0.15
  65      Nrrr"r#crr)rr	r")r
  66  rr"rr
  67  rr	es
  68  zBadPayload.__init__r)rrr"r#rr
  69  r
  70  rrr$\sr$)�
  71  __future__r�typing�tr�	Exceptionrrrrr r$r
  72  r
  73  r
  74  r�<module>s