Ë
    [üàgJ  ã                   óD   — d dl Z d dlmZ  G d„ de«      Z G d„ de«      Zy)é    N)ÚOptionalc                   ó   — e Zd Zy)ÚTwilioExceptionN)Ú__name__Ú
__module__Ú__qualname__© ó    úT/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/base/exceptions.pyr   r      s   „ Ør
   r   c                   óR   — e Zd ZdZ	 	 	 	 ddedededee   dedee   fd	„Zd
efd„Z	y)ÚTwilioRestExceptionaó  A generic 400 or 500 level exception from the Twilio API

    :param int status: the HTTP status that was returned for the exception
    :param str uri: The URI that caused the exception
    :param str msg: A human-readable message for the error
    :param int|None code: A Twilio-specific error code for the error. This is
         not available for all errors.
    :param method: The HTTP method used to make the request
    :param details: Additional error details returned for the exception
    NÚstatusÚuriÚmsgÚcodeÚmethodÚdetailsc                 óX   — || _         || _        || _        || _        || _        || _        y )N)r   r   r   r   r   r   )Úselfr   r   r   r   r   r   s          r   Ú__init__zTwilioRestException.__init__   s.   € ð ˆŒØˆŒØˆŒØˆŒ	ØˆŒØˆ�r
   Úreturnc                 óº  — dt         dt         fd„}dt         dt         fd„}dt         dt         fd„}dt         dt         fd„}dt        dt         fd„}t        t        j                  d	«      rÌt        j                  j                  «       r®d
j                   |d«       |d«       || j                  ›d| j                  ›�«       |d«       |t        | j                  «      «      ¬«      }| j                  r@dj                  |dj                   |d«       | || j                  «      «      ¬«      g«      }|S dj                  | j                  | j                  «      S )z>Try to pretty-print the exception, if this is going on screen.Úwordsr   c                 ó   — d| z  S )Nz[31m[49m%s[0mr	   ©r   s    r   Úredz(TwilioRestException.__str__.<locals>.red)   ó   € Ø.°Ñ6Ð6r
   c                 ó   — d| z  S )Nz[37m[49m%s[0mr	   r   s    r   Úwhitez*TwilioRestException.__str__.<locals>.white,   r   r
   c                 ó   — d| z  S )Nz[34m[49m%s[0mr	   r   s    r   Úbluez)TwilioRestException.__str__.<locals>.blue/   r   r
   c                 ó   — d| z  S )Nz[36m[49m%s[0mr	   r   s    r   Útealz)TwilioRestException.__str__.<locals>.teal2   r   r
   r   c                 ó$   — dj                  | «      S )Nz&https://www.twilio.com/docs/errors/{0})Úformat)r   s    r   Úget_uriz,TwilioRestException.__str__.<locals>.get_uri5   s   € Ø;×BÑBÀ4ÓHÐHr
   ÚisattyzF
{red_error} {request_was}

{http_line}

{twilio_returned}

{message}
z
HTTP ErrorzYour request was:ú z*Twilio returned the following information:)Ú	red_errorÚrequest_wasÚ	http_lineÚtwilio_returnedÚmessageÚ z
{more_info}

{uri}

z'More information may be available here:)Ú	more_infor   zHTTP {0} error: {1})ÚstrÚintÚhasattrÚsysÚstderrr'   r%   r   r   r   r   Újoinr   )r   r   r   r!   r#   r&   r   s          r   Ú__str__zTwilioRestException.__str__&   sI  € ð	7”sð 	7œsó 	7ð	7œð 	7¤ó 	7ð	7œð 	7¤ó 	7ð	7œð 	7¤ó 	7ð	Iœ#ð 	I¤#ó 	Iô ”3—:‘:˜xÔ(¬S¯Z©Z×->Ñ->Ô-@ð7ß7=±vÙ! ,Ó/Ù %Ð&9Ó :Ù"¨d¯k«k¸4¿8º8Ð#DÓEÙ$)Ð*VÓ$WÙ ¤ T§X¡X£Ó/ð 8>ó 8ð ð �yŠyØ—g‘gàØ4×;Ñ;Ù&+Ð,UÓ&VÙ $¡W¨T¯Y©YÓ%7Ó 8ð <ó ðó�ð ˆJà(×/Ñ/°·±¸T¿X¹XÓFÐFr
   )r.   NÚGETN)
r   r   r   Ú__doc__r1   r0   r   Úobjectr   r6   r	   r
   r   r   r   
   sk   „ ñ	ð Ø"ØØ$(ñàðð ðð ð	ð
 �s‰mðð ðð ˜&Ñ!óð ,G˜ô ,Gr
   r   )r3   Útypingr   Ú	Exceptionr   r   r	   r
   r   ú<module>r<      s'   ðã 
Ý ô	�iô 	ôHG˜/õ HGr
   