§
    º³Ùgè  ã                   ó2   — d Z ddlmZ  G d„ de¦  «        ZdS )z:
Exception for errors when there's an error in the Result
é    )ÚQiskitErrorc                   ó(   ‡ — e Zd ZdZˆ fd„Zd„ Zˆ xZS )ÚResultErrora˜  Exceptions raised due to errors in result output.

    It may be better for the Qiskit API to raise this exception.

    Args:
        error (dict): This is the error record as it comes back from
            the API. The format is like::

                error = {'status': 403,
                         'message': 'Your credits are not enough.',
                         'code': 'MAX_CREDITS_EXCEEDED'}
    c                 óŠ   •— t          ¦   «                              |d         ¦  «         |d         | _        |d         | _        d S )NÚmessageÚstatusÚcode)ÚsuperÚ__init__r   r	   )ÚselfÚerrorÚ	__class__s     €úN/granary/edev/quantum/lib/python3.11/site-packages/qiskit/result/exceptions.pyr   zResultError.__init__"   s:   ø€ Ý‰Œ×Ò˜˜yÔ)Ñ*Ô*Ð*Ø˜H”oˆŒØ˜&”MˆŒ	ˆ	ˆ	ó    c                 ó$   — | j         › d| j        › �S )Nz: )r	   r   )r   s    r   Ú__str__zResultError.__str__'   s   € Ø”)Ð-Ð-˜tœ|Ð-Ð-Ð-r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ú__classcell__)r   s   @r   r   r      sQ   ø€ € € € € ðð ð"ð "ð "ð "ð "ð
.ð .ð .ð .ð .ð .ð .r   r   N)r   Úqiskit.exceptionsr   r   © r   r   ú<module>r      sW   ððð ð *Ð )Ð )Ð )Ð )Ð )ð.ð .ð .ð .ð .�+ñ .ô .ð .ð .ð .r   