Ë
    PU hç
  ã                  ód   — d dl mZ d dlZd dlZd dlmZ d dlmZ  G d„ de«      Z	 G d„ de«      Z
y)	é    )ÚannotationsN)ÚAny)ÚResponsec                  ó>   — e Zd ZdZ	 	 	 	 	 d	 	 	 	 	 	 	 	 	 dd„Zdd„Zy)Ú	JIRAErrorzAGeneral error raised for all problems in operation of the client.Nc                óÔ   — || _         || _        || _        || _        || _        |j                  dd«      | _        dt        j                  v | _	        dt        j                  v | _
        y)aÑ  Creates a JIRAError.

        Args:
            text (Optional[str]): Message for the error.
            status_code (Optional[int]): Status code for the error.
            url (Optional[str]): Url related to the error.
            request (Optional[requests.Response]): Request made related to the error.
            response (Optional[requests.Response]): Response received related to the error.
            **kwargs: Will be used to get request headers.
        ÚheadersNÚPYJIRA_LOG_TO_TEMPFILEÚGITHUB_ACTION)Ústatus_codeÚtextÚurlÚrequestÚresponseÚgetr	   ÚosÚenvironÚlog_to_tempfileÚci_run)Úselfr   r   r   r   r   Úkwargss          úG/var/www/timesheet/venv/lib/python3.12/site-packages/jira/exceptions.pyÚ__init__zJIRAError.__init__   s[   € ð& 'ˆÔØˆŒ	ØˆŒØˆŒØ ˆŒØ—z‘z )¨TÓ2ˆŒØ7¼2¿:¹:ÐEˆÔØ%¬¯©Ð3ˆ�ó    c                ó6  — d| j                   › �}| j                  r|d| j                  › �z  }d}| j                  �dt        | j                  d«      r|d| j                  j                  › �z  }t        | j                  d«      r|d| j                  j
                  › �z  }| j                  �dt        | j                  d«      r|d| j                  j                  › �z  }t        | j                  d«      r|d	| j                  j
                  › �z  }| j                  rJt        j                  d
d¬«      \  }}t        |d«      5 }|d|› �z  }|j                  |«       d d d «       |S | j
                  r|d| j
                  › �z  }|d|› �z  }|S # 1 sw Y   |S xY w)NzJiraError HTTP z url: Ú r	   z
	request headers = r   z
	request text = z
	response headers = z
	response text = z.tmpz
jiraerror-)ÚsuffixÚprefixÚwz
 details: z
	text: z
	)r   r   r   Úhasattrr	   r   r   r   ÚtempfileÚmkstempÚopenÚwrite)r   ÚtÚdetailsÚ_Ú	file_nameÚfs         r   Ú__str__zJIRAError.__str__)   s�  € Ø˜d×.Ñ.Ð/Ð0ˆØ�8Š8Ø�6˜$Ÿ(™(˜Ð$Ñ$ˆAàˆØ�<‰<Ð#Ü�t—|‘| YÔ/ØÐ3°D·L±L×4HÑ4HÐ3IÐJÑJ�ä�t—|‘| VÔ,ØÐ0°·±×1BÑ1BÐ0CÐDÑD�Ø�=‰=Ð$Ü�t—}‘} iÔ0ØÐ4°T·]±]×5JÑ5JÐ4KÐLÑL�ä�t—}‘} fÔ-ØÐ1°$·-±-×2DÑ2DÐ1EÐFÑF�à×Òä#×+Ñ+°6À,ÔO‰LˆAˆyÜ�i Ó%ð !¨Ø�z ) Ð-Ñ-�Ø—‘˜Ô ÷!ð ˆð	 �yŠyØ�z $§)¡) Ð-Ñ-�Ø�4˜�yÐ!Ñ!ˆAàˆ÷!ð ˆús   ÅFÆF)NNNNN)
r   Ústrr   Úintr   r+   r   r   r   r   )Úreturnr+   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r*   © r   r   r   r   
   sP   „ ÙKð ØØØ Ø!ð4àð4ð ð4ð ð	4ð
 ð4ð ó4ô8r   r   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚNotJIRAInstanceErrorz4Raised in the case an object is not a JIRA instance.c                óV   •— d|j                   j                  › �}t        ‰| �  |«       y )NzUThe first argument of this function must be an instance of type JIRA. Instance Type: )Ú	__class__r.   Úsuperr   )r   ÚinstanceÚmsgr6   s      €r   r   zNotJIRAInstanceError.__init__N   s4   ø€ ð$Ø$,×$6Ñ$6×$?Ñ$?Ð#@ðBð 	ô 	‰Ñ˜Õr   )r8   r   )r.   r/   r0   r1   r   Ú__classcell__)r6   s   @r   r4   r4   K   s   ø„ Ù>÷ñ r   r4   )Ú
__future__r   r   r!   Útypingr   Úrequestsr   Ú	Exceptionr   r4   r2   r   r   ú<module>r?      s-   ðÝ "ã 	Û Ý å ô>�	ô >ôB˜9õ r   