
    x
ha                          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 G d de      Z G d de      Zy)c                   (     e Zd ZdZ fdZd Z xZS )DropboxExceptionz8All errors related to making an API request extend this.c                 B    t        t        | 
  |g|i | || _        y N)superr   __init__
request_id)selfr   argskwargs	__class__s       W/var/www/html/lionshead-backend/venv/lib/python3.12/site-packages/dropbox/exceptions.pyr   zDropboxException.__init__   s&     	.zKDKFK$    c                     t        |       S r   )reprr	   s    r   __str__zDropboxException.__str__
   s    Dzr   )__name__
__module____qualname____doc__r   r   __classcell__r   s   @r   r   r      s    B%r   r   c                   (     e Zd ZdZ fdZd Z xZS )ApiErrorz#Errors produced by the Dropbox API.c                 X    t         t        |   ||       || _        || _        || _        y)a  
        :param (str) request_id: A request_id can be shared with Dropbox
            Support to pinpoint the exact request that returns an error.
        :param error: An instance of the error data type for the route.
        :param (str) user_message_text: A human-readable message that can be
            displayed to the end user. Is None, if unavailable.
        :param (str) user_message_locale: The locale of ``user_message_text``,
            if present.
        N)r   r   r   erroruser_message_textuser_message_locale)r	   r   r   r   r   r   s        r   r   zApiError.__init__   s-     	h&z59
!2#6 r   c                 N    dj                  | j                  | j                        S )NzApiError({!r}, {})formatr   r   r   s    r   __repr__zApiError.__repr__    s    #**4??DJJGGr   r   r   r   r   r   r"   r   r   s   @r   r   r      s    -7Hr   r   c                   (     e Zd ZdZ fdZd Z xZS )	HttpErrorz"Errors produced at the HTTP layer.c                 L    t         t        |   |||       || _        || _        y r   )r   r%   r   status_codebody)r	   r   r'   r(   r   s       r   r   zHttpError.__init__'   s%    i'
KF&	r   c                 d    dj                  | j                  | j                  | j                        S )NzHttpError({!r}, {}, {!r})r!   r   r'   r(   r   s    r   r"   zHttpError.__repr__,   s*    *11$//dii) 	)r   r#   r   s   @r   r%   r%   $   s    ,
)r   r%   c                   *     e Zd ZdZd fd	Zd Z xZS )PathRootErrorz%Error caused by an invalid path root.c                 >    t         t        |   |dd        || _        y )Ni  )r   r,   r   r   r	   r   r   r   s      r   r   zPathRootError.__init__4   s    mT+JTB
r   c                 N    dj                  | j                  | j                        S )NzPathRootError({!r}, {!r})r    r   s    r   r"   zPathRootError.__repr__8   s    *11$//4::NNr   r   r#   r   s   @r   r,   r,   1   s    /Or   r,   c                   (     e Zd ZdZ fdZd Z xZS )BadInputErrorz7Errors due to bad input parameters to an API Operation.c                 >    t         t        |   |d|       || _        y )Ni  )r   r1   r   message)r	   r   r3   r   s      r   r   zBadInputError.__init__?   s    mT+JWEr   c                 N    dj                  | j                  | j                        S )NzBadInputError({!r}, {!r}))r!   r   r3   r   s    r   r"   zBadInputError.__repr__C   s    *11$//4<<PPr   r#   r   s   @r   r1   r1   <   s    AQr   r1   c                   (     e Zd ZdZ fdZd Z xZS )	AuthErrorz1Errors due to invalid authentication credentials.c                 >    t         t        |   |dd        || _        y )Ni  )r   r6   r   r   r.   s      r   r   zAuthError.__init__J   s    i'
C>
r   c                 N    dj                  | j                  | j                        S )NzAuthError({!r}, {!r})r    r   s    r   r"   zAuthError.__repr__N   s    &--dootzzJJr   r#   r   s   @r   r6   r6   G   s    ;Kr   r6   c                   *     e Zd ZdZd fd	Zd Z xZS )RateLimitErrorzError caused by rate limiting.c                 L    t         t        |   |dd        || _        || _        y )Ni  )r   r:   r   r   backoff)r	   r   r   r<   r   s       r   r   zRateLimitError.__init__U   s$    nd,ZdC
r   c                 d    dj                  | j                  | j                  | j                        S )Nz RateLimitError({!r}, {!r}, {!r}))r!   r   r   r<   r   s    r   r"   zRateLimitError.__repr__Z   s(    188OOTZZ7 	7r   )NNr#   r   s   @r   r:   r:   R   s    (
7r   r:   c                       e Zd ZdZd Zy)InternalServerErrorz#Errors due to a problem on Dropbox.c                 d    dj                  | j                  | j                  | j                        S )Nz#InternalServerError({!r}, {}, {!r})r*   r   s    r   r"   zInternalServerError.__repr__b   s*    4;;OOT--tyy: 	:r   N)r   r   r   r   r"    r   r   r?   r?   _   s
    -:r   r?   N)		Exceptionr   r   r%   r,   r1   r6   r:   r?   rA   r   r   <module>rC      so   
y 
H H,
)  
)OI OQI QK	 K
7Y 
7:) :r   