
    #Ii                         S SK r S SKJrJrJrJrJrJrJ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g)    N)AnyDictListOptionalTupleTypeUnionc                     ^  \ rS rSrSrS\S\\\\\\\	\   \	\\\4      4   4   4   S\
\\\4      4U 4S jjr\S\4S j5       r\S\\\\\\\	\   \	\\\4      4   4   4   4S	 j5       r\S\
\\\4      4S
 j5       rS\4S jrSrU =r$ )GithubException#   a  
Error handling in PyGithub is done with exceptions. This class is the base of all exceptions raised by PyGithub (but :class:`github.GithubException.BadAttributeException`).

Some other types of exceptions might be raised by underlying libraries, for example for network-related issues.
statusdataheadersc                 X   > [         TU ]  5         Xl        X l        X0l        XU4U l        g N)super__init___GithubException__status_GithubException__data_GithubException__headersargs)selfr   r   r   	__class__s       </venv/lib/python3.13/site-packages/github/GithubException.pyr   GithubException.__init__*   s+     	 7+	    returnc                     U R                   $ )z'
The status returned by the Github API
)r   r   s    r   r   GithubException.status6   s    
 }}r   c                     U R                   $ )z/
The (decoded) data returned by the Github API
)r   r   s    r   r   GithubException.data=   s     {{r   c                     U R                   $ )z(
The headers returned by the Github API
)r   r   s    r   r   GithubException.headersF   s    
 ~~r   c                 `    U R                    S[        R                  " U R                  5       3$ )N )r   jsondumpsr   r   s    r   __str__GithubException.__str__M   s%    ++a

499 5677r   )__data	__headers__statusr   )__name__
__module____qualname____firstlineno____doc__intr	   strr   r   r   r   propertyr   r   r   r)   __static_attributes____classcell__)r   s   @r   r   r   #   s   
,
, Cc5d3id38n9M)M#NNOOP
, $sCx.)	
,    	sDeCcDc3h4H$HIIJJ	K  $sCx.1  8 8 8r   r   c                       \ rS rSrSrSrg)BadCredentialsExceptionQ   ze
Exception raised in case of bad credentials (when Github API replies with a 401 or 403 HTML status)
 Nr.   r/   r0   r1   r2   r6   r;   r   r   r9   r9   Q       r   r9   c                       \ rS rSrSrSrg)UnknownObjectExceptionW   zk
Exception raised when a non-existing object is requested (when Github API replies with a 404 HTML status)
r;   Nr<   r;   r   r   r?   r?   W   r=   r   r?   c                       \ rS rSrSrSrg)BadUserAgentException]   z
Exception raised when request is sent with a bad user agent header (when Github API replies with a 403 bad user agent HTML status)
r;   Nr<   r;   r   r   rB   rB   ]   r=   r   rB   c                       \ rS rSrSrSrg)RateLimitExceededExceptionc   zw
Exception raised when the rate limit is exceeded (when Github API replies with a 403 rate limit exceeded HTML status)
r;   Nr<   r;   r   r   rE   rE   c   r=   r   rE   c                   f   \ rS rSrSrS\S\\\\	\
   \	\
   4   \	\   4   \\	\
   \	\
   4   \\	\      \\\	\
   \	\
   4      4   S\\   4S jr\S\4S j5       r\S\\\	\      \\	\
   \	\
   4   \\\	\
   \	\
   4   \	\   4   \\\	\
   \	\
   4      4   4S	 j5       r\S\\   4S
 j5       rSrg)BadAttributeExceptioni   zH
Exception raised when Github returns an attribute with the wrong type.
actualValueexpectedTypetransformationExceptionc                 (    Xl         X l        X0l        g r   )#_BadAttributeException__actualValue$_BadAttributeException__expectedType/_BadAttributeException__transformationException)r   rJ   rK   rL   s       r   r   BadAttributeException.__init__n   s     )*)@&r   r   c                     U R                   $ )z
The value returned by Github
)rN   r   s    r   actual_value"BadAttributeException.actual_value}   s    
 !!!r   c                     U R                   $ )z
The type PyGithub expected
)rO   r   s    r   expected_type#BadAttributeException.expected_type   s     """r   c                     U R                   $ )z=
The exception raised when PyGithub tried to parse the value
)rP   r   s    r   transformation_exception.BadAttributeException.transformation_exception   s    
 ---r   )__actualValue__expectedType__transformationExceptionN)r.   r/   r0   r1   r2   r   r	   r   r   r   r4   dictr   r   	Exceptionr   r5   rS   rV   rY   r6   r;   r   r   rH   rH   i   sX   AA tCy$s)+,d4j89$s)T#Y&'dtCy$s)+,-/
A "*)!4A "c " " #	T$Zd3ic"#U49d3i'($t*45U49d3i'()	+
# # .(9*= . .r   rH   c                       \ rS rSrSrSrg)TwoFactorException   zX
Exception raised when Github requires a onetime password for two-factor authentication
r;   Nr<   r;   r   r   ra   ra      r=   r   ra   c                       \ rS rSrSrSrg)IncompletableObject   zp
Exception raised when we can not request an object from Github because the data returned did not include a URL
r;   Nr<   r;   r   r   rd   rd      r=   r   rd   )r'   typingr   r   r   r   r   r   r	   r_   r   r9   r?   rB   rE   rH   ra   rd   r;   r   r   <module>rg      su   >  @ @ @+8i +8\o _ O  ..I ..b / r   