ó
    °"³jó  ã                  ó@  • S SK Jr  S SKrS SKJrJr  S SKJr  S SKrSSK	J
r
  SSKJr  / SQ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 " S S\5      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 " S# S$\5      r " S% S&\5      r " S' S(\5      r " S) S*\5      r " S+ S,\5      r  " S- S.\5      r! " S/ S0\5      r" " S1 S2\5      r# " S3 S4\5      r$g)5é    )ÚannotationsN)ÚUnionÚcast)ÚLiteralé   )Úis_dict)Ú	ErrorType)ÚBadRequestErrorÚAuthenticationErrorÚPermissionDeniedErrorÚNotFoundErrorÚConflictErrorÚUnprocessableEntityErrorÚRateLimitErrorÚInternalServerErrorÚRetryableErrorÚRequestTooLargeErrorÚServiceUnavailableErrorÚOverloadedErrorÚDeadlineExceededErrorÚCredentialsErrorÚIdentityTokenFileErrorc                  ó   • \ rS rSrSrg)ÚAnthropicErroré   © N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__static_attributes__r   ó    ÚR/home/mande/repo/quber/.venv/lib/python3.13/site-packages/anthropic/_exceptions.pyr   r      ó   † Úr#   r   c                  óN   ^ • \ rS rSr% S\S'   S\S'   S\S'    S
U 4S jjrS	rU =r$ )ÚAPIErroré#   ÚstrÚmessageúhttpx2.RequestÚrequestúobject | NoneÚbodyc               óH   >• [         TU ]  U5        X l        Xl        X0l        g ©N)ÚsuperÚ__init__r,   r*   r.   )Úselfr*   r,   r.   Ú	__class__s       €r$   r2   ÚAPIError.__init__2   s   ø€ Ü‰Ñ˜Ô!ØŒØŒØ�	r#   )r.   r*   r,   )r*   r)   r,   r+   r.   r-   ÚreturnÚNone©r   r   r    r!   Ú__annotations__r2   r"   Ú__classcell__©r4   s   @r$   r'   r'   #   s#   ø‡ ØƒLØÓà
Óð÷õ r#   r'   c                  óJ   ^ • \ rS rSr% S\S'   S\S'   SS.S
U 4S jjjrS	rU =r$ )ÚAPIResponseValidationErroré9   úhttpx2.ResponseÚresponseÚintÚstatus_codeN©r*   c               óx   >• [         TU ]  U=(       d    SUR                  US9  Xl        UR                  U l        g )Nz1Data returned by API invalid for expected schema.©r.   )r1   r2   r,   r@   rB   )r3   r@   r.   r*   r4   s       €r$   r2   Ú#APIResponseValidationError.__init__=   s8   ø€ Ü‰Ñ˜×WÐ$WÐYa×YiÑYiÐptÐÑuØ ŒØ#×/Ñ/ˆÕr#   )r@   rB   )r@   r?   r.   r-   r*   ú
str | Noner6   r7   r8   r;   s   @r$   r=   r=   9   s!   ø‡ ØÓØÓà`d÷ 0÷ 0ð 0r#   r=   c                  ó   • \ rS rSrSrg)ÚAPIWebhookValidationErroréC   r   Nr   r   r#   r$   rI   rI   C   r%   r#   rI   c                  ód   ^ • \ rS rSr% SrS\S'   S\S'   S\S'   S	\S
'   S\S'   SU 4S jjrSrU =r$ )ÚAPIStatusErroréG   z<Raised when an API response has a status code of 4xx or 5xx.r?   r@   rA   rB   rG   Ú
request_idzErrorType | NoneÚtypeÚworkspace_idc               ó²  >• [         TU ]  XR                  US9  X l        UR                  U l        UR
                  R                  S5      U l        UR
                  R                  S5      U l        S U l	        [        U5      (       aP  UR                  S5      n[        U5      (       a.  [        [        [        S 4   UR                  S5      5      U l	        g g g )NrE   z
request-idzanthropic-workspace-idÚerrorrO   )r1   r2   r,   r@   rB   ÚheadersÚgetrN   rP   rO   r   r   r   r	   )r3   r*   r@   r.   rR   r4   s        €r$   r2   ÚAPIStatusError.__init__Q   s±   ø€ Ü‰Ñ˜×"2Ñ"2¸ÐÑ>Ø ŒØ#×/Ñ/ˆÔØ"×*Ñ*×.Ñ.¨|Ó<ˆŒØ$×,Ñ,×0Ñ0Ð1IÓJˆÔàˆŒ	Ü�4�=‰=Ø—H‘H˜WÓ%ˆEÜ�u�~‰~Ü ¤¤y°$ Ñ!7¸¿¹À6Ó9JÓK�•	ð ð r#   )rN   r@   rB   rO   rP   )r*   r)   r@   r?   r.   r-   r6   r7   ©	r   r   r    r!   Ú__doc__r9   r2   r"   r:   r;   s   @r$   rL   rL   G   s0   ø‡ ÙFàÓØÓØÓØ
ÓàÓ÷Lõ Lr#   rL   c                  ó4   ^ • \ rS rSrSS.SU 4S jjjrSrU =r$ )ÚAPIConnectionErroré_   zConnection error.rC   c               ó"   >• [         TU ]  XS S9  g )NrE   ©r1   r2   )r3   r*   r,   r4   s      €r$   r2   ÚAPIConnectionError.__init__`   s   ø€ Ü‰Ñ˜°ÐÒ5r#   r   )r*   r)   r,   r+   r6   r7   ©r   r   r    r!   r2   r"   r:   r;   s   @r$   rY   rY   _   s   ø† Ø)<÷ 6÷ 6ð 6r#   rY   c                  ó,   ^ • \ rS rSrSU 4S jjrSrU =r$ )ÚAPITimeoutErroréd   c                ó"   >• [         TU ]  SUS9  g )NzÃRequest timed out or interrupted. This could be due to a network timeout, dropped connection, or request cancellation. See https://docs.anthropic.com/en/api/errors#long-requests for more details.)r*   r,   r\   )r3   r,   r4   s     €r$   r2   ÚAPITimeoutError.__init__e   s   ø€ Ü‰Ñð ZØð 	ò 	
r#   r   )r,   r+   r6   r7   r^   r;   s   @r$   r`   r`   d   s   ø† ÷
õ 
r#   r`   c                  ó   • \ rS rSrSrSrg)r   él   z÷An error that opts into the SDK's retry policy: raise it (e.g. from
middleware) to have the request attempt retried.

The request is only retried while `max_retries` has not been exhausted;
once exhausted the error propagates to the caller as-is.
r   N©r   r   r    r!   rW   r"   r   r#   r$   r   r   l   s   † ôr#   r   c                  ó   • \ rS rSrSrSrg)r   éu   zVRaised when credentials cannot be loaded from local files, config, or the environment.r   Nrf   r   r#   r$   r   r   u   s   † Ü`r#   r   c                  óD   ^ • \ rS rSr% SrS\S'   SS.SU 4S jjjrSrU =r$ )	r   éy   zèRaised when the identity token file does not exist, is empty, or cannot be read.

`path` is the file the provider tried to read (when known), so callers
waiting for a projected token to appear can retry without parsing the message.
úpathlib.Path | NoneÚpathN)rl   c               ó0   >• [         TU ]  U5        X l        g r0   )r1   r2   rl   )r3   r*   rl   r4   s      €r$   r2   ÚIdentityTokenFileError.__init__‚   s   ø€ Ü‰Ñ˜Ô!Ø�	r#   )r*   r)   rl   rk   r6   r7   rV   r;   s   @r$   r   r   y   s"   ø‡ ñð ÓàDH÷ ÷ ð r#   r   c                  ó$   • \ rS rSr% SrS\S'   Srg)r
   é‡   i�  zLiteral[400]rB   r   N©r   r   r    r!   rB   r9   r"   r   r#   r$   r
   r
   ‡   ó   ‡ Ø #€K�Ö#r#   r
   c                  ó$   • \ rS rSr% SrS\S'   Srg)r   é‹   i‘  zLiteral[401]rB   r   Nrq   r   r#   r$   r   r   ‹   rr   r#   r   c                  ó$   • \ rS rSr% SrS\S'   Srg)r   é�   i“  zLiteral[403]rB   r   Nrq   r   r#   r$   r   r   �   rr   r#   r   c                  ó$   • \ rS rSr% SrS\S'   Srg)r   é“   i”  zLiteral[404]rB   r   Nrq   r   r#   r$   r   r   “   rr   r#   r   c                  ó$   • \ rS rSr% SrS\S'   Srg)r   é—   i™  zLiteral[409]rB   r   Nrq   r   r#   r$   r   r   —   rr   r#   r   c                  ó$   • \ rS rSr% SrS\S'   Srg)r   é›   i�  zLiteral[413]rB   r   Nrq   r   r#   r$   r   r   ›   rr   r#   r   c                  ó$   • \ rS rSr% SrS\S'   Srg)r   éŸ   i¦  zLiteral[422]rB   r   Nrq   r   r#   r$   r   r   Ÿ   rr   r#   r   c                  ó$   • \ rS rSr% SrS\S'   Srg)r   é£   i­  zLiteral[429]rB   r   Nrq   r   r#   r$   r   r   £   rr   r#   r   c                  ó$   • \ rS rSr% SrS\S'   Srg)r   é§   i÷  zLiteral[503]rB   r   Nrq   r   r#   r$   r   r   §   rr   r#   r   c                  ó$   • \ rS rSr% SrS\S'   Srg)r   é«   i  zLiteral[529]rB   r   Nrq   r   r#   r$   r   r   «   rr   r#   r   c                  ó$   • \ rS rSr% SrS\S'   Srg)r   é¯   iø  zLiteral[504]rB   r   Nrq   r   r#   r$   r   r   ¯   rr   r#   r   c                  ó   • \ rS rSrSrg)r   é³   r   Nr   r   r#   r$   r   r   ³   r%   r#   r   )%Ú
__future__r   ÚpathlibÚtypingr   r   Útyping_extensionsr   Úhttpx2Ú_utilsr   Útypes.shared.error_typer	   Ú__all__Ú	Exceptionr   r'   r=   rI   rL   rY   r`   r   r   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   r#   r$   Ú<module>r’      s/  ðÝ "ã ß Ý %ã å Ý .ò€ô&	�Yô 	ôˆ~ô ô,0 ô 0ô	 ô 	ôL�Xô Lô06˜ô 6ô

Ð(ô 
ô�^ô ôa�~ô aôÐ-ô ô$�nô $ô$˜.ô $ô$˜Nô $ô$�Nô $ô$�Nô $ô$˜>ô $ô$˜~ô $ô$�^ô $ô$˜nô $ô$�nô $ô$˜Nô $ô	˜.õ 	r#   