§
    +" hç
  ã                  ór   — 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
dS )	é    )ÚannotationsN)ÚAny)ÚResponsec                  ó.   — e Zd ZdZ	 	 	 	 	 ddd„Zdd„ZdS )Ú	JIRAErrorzAGeneral error raised for all problems in operation of the client.NÚtextÚstrÚstatus_codeÚintÚurlÚrequestr   Úresponsec                óÎ   — || _         || _        || _        || _        || _        |                     dd¦  «        | _        dt          j        v | _	        dt          j        v | _
        dS )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)r
   r   r   r   r   Úgetr   ÚosÚenvironÚlog_to_tempfileÚci_run)Úselfr   r
   r   r   r   Úkwargss          úIc:\xampp_lite_8_4\www\timesheet\venv\Lib\site-packages\jira/exceptions.pyÚ__init__zJIRAError.__init__   s^   € ð& 'ˆÔØˆŒ	ØˆŒØˆŒØ ˆŒØ—z’z )¨TÑ2Ô2ˆŒØ7½2¼:ÐEˆÔØ%­¬Ð3ˆŒˆˆó    Úreturnc                óž  — d| j         › �}| j        r|d| j        › �z  }d}| j        �Nt          | j        d¦  «        r|d| j        j        › �z  }t          | j        d¦  «        r|d| j        j        › �z  }| j        �Nt          | j        d¦  «        r|d| j        j        › �z  }t          | j        d¦  «        r|d	| j        j        › �z  }| j        r_t          j	        d
d¬¦  «        \  }}t          |d¦  «        5 }|d|› �z  }|                     |¦  «         d d d ¦  «         n# 1 swxY w Y   n| j        r|d| j        › �z  }|d|› �z  }|S )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ß  € Ø0˜dÔ.Ð0Ð0ˆØŒ8ð 	%ØÐ$˜$œ(Ð$Ð$Ñ$ˆAàˆØŒ<Ð#Ý�t”| YÑ/Ô/ð KØÐJ°D´LÔ4HÐJÐJÑJ�å�t”| VÑ,Ô,ð EØÐD°´Ô1BÐDÐDÑD�ØŒ=Ð$Ý�t”} iÑ0Ô0ð MØÐL°T´]Ô5JÐLÐLÑL�å�t”} fÑ-Ô-ð GØÐF°$´-Ô2DÐFÐFÑF�àÔð 
	"å#Ô+°6À,ÐOÑOÔO‰LˆAˆyÝ�i Ñ%Ô%ð !¨ØÐ- )Ð-Ð-Ñ-�Ø—’˜Ñ Ô Ð ð!ð !ð !ñ !ô !ð !ð !ð !ð !ð !ð !øøøð !ð !ð !ð !øð
 Œyð .ØÐ- $¤)Ð-Ð-Ñ-�ØÐ!˜Ð!Ð!Ñ!ˆAàˆs   Ã;D%Ä%D)Ä,D))NNNNN)
r   r	   r
   r   r   r	   r   r   r   r   )r   r	   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r-   © r   r   r   r   
   sX   € € € € € ØKÐKð ØØØ Ø!ð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.Úinstancer   c                óh   •— d|j         j        › �}t          ¦   «                              |¦  «         d S )NzUThe first argument of this function must be an instance of type JIRA. Instance Type: )Ú	__class__r.   Úsuperr   )r   r5   Úmsgr7   s      €r   r   zNotJIRAInstanceError.__init__N   sC   ø€ ðBØ$,Ô$6Ô$?ðBð Bð 	õ 	‰Œ×Ò˜ÑÔÐÐÐr   )r5   r   )r.   r/   r0   r1   r   Ú__classcell__)r7   s   @r   r4   r4   K   sC   ø€ € € € € Ø>Ð>ðð ð ð ð ð ð ð ð ð r   r4   )Ú
__future__r   r   r$   Útypingr   Úrequestsr   Ú	Exceptionr   r4   r2   r   r   ú<module>r?      s¬   ðØ "Ð "Ð "Ð "Ð "Ð "à 	€	€	€	Ø €€€Ø Ð Ð Ð Ð Ð à Ð Ð Ð Ð Ð ð>ð >ð >ð >ð >�	ñ >ô >ð >ðBð ð ð ð ˜9ñ ô ð ð ð r   