
    i                         S r SSKJr   " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      r " S S\5      rg)z*Exceptions related to the IBM Quantum API.   )IBMErrorc                       \ rS rSrSrSrg)ApiError   zGeneric IBM Quantum API error. N__name__
__module____qualname____firstlineno____doc____static_attributes__r       [/home/james-whalen/.local/lib/python3.13/site-packages/qiskit_ibm_runtime/api/exceptions.pyr   r      s    (r   r   c                   <   ^  \ rS rSrSrSS\S\4U 4S jjjrSrU =r	$ )RequestsApiError   z(Exception re-raising a RequestException.messagestatus_codec                 0   > [         TU ]  U5        X l        g)zRequestsApiError constructor.

Args:
    message: Exception message.
    status_code: Response status code. -1 for unknown status code.
N)super__init__r   )selfr   r   	__class__s      r   r   RequestsApiError.__init__   s     	!&r   )r   ))
r	   r
   r   r   r   strintr   r   __classcell__)r   s   @r   r   r      s    2' '# ' 'r   r   c                       \ rS rSrSrSrg)AuthenticationLicenseError&   z@Exception due to user not having accepted the license agreement.r   Nr   r   r   r   r!   r!   &   s    Jr   r!   c                       \ rS rSrSrSrg)ApiIBMProtocolError,   z4Exception related to IBM Quantum API protocol error.r   Nr   r   r   r   r$   r$   ,   s    >r   r$   c                       \ rS rSrSrSrg)UserTimeoutExceededError2   z5Exceptions related to exceeding user defined timeout.r   Nr   r   r   r   r'   r'   2   s    ?r   r'   N)r   
exceptionsr   r   r   r!   r$   r'   r   r   r   <module>r*      sI    1 !	x 	'x '	 		( 		x 	r   