
    z	i                     *    S r SSKJr   " S S\5      rg)z:
Exception for errors when there's an error in the Result
    )QiskitErrorc                   2   ^  \ rS rSrSrU 4S jrS rSrU =r$ )ResultError   ax  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                 R   > [         TU ]  US   5        US   U l        US   U l        g )Nmessagestatuscode)super__init__r	   r
   )selferror	__class__s     R/home/james-whalen/.local/lib/python3.13/site-packages/qiskit/result/exceptions.pyr   ResultError.__init__"   s+    y)*Ho&M	    c                 8    U R                    SU R                   3$ )Nz: )r
   r   )r   s    r   __str__ResultError.__str__'   s    ))Bt||n--r   )r
   r	   )	__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes____classcell__)r   s   @r   r   r      s    "
. .r   r   N)r   qiskit.exceptionsr   r    r   r   <module>r      s    *.+ .r   