---
title: ResultError (v2.4)
description: API reference for qiskit.result.ResultError in qiskit v2.4
source: https://eu-de.quantum.cloud.ibm.com/docs/en/api/qiskit/2.4/qiskit.result.ResultError
---

# qiskit.result.ResultError

*exception* `qiskit.result.ResultError(error)`

[GitHub](https://github.com/Qiskit/qiskit/tree/stable/2.4/qiskit/result/exceptions.py#L20-L40)

Bases: [`QiskitError`](/docs/api/qiskit/2.4/exceptions#qiskit.exceptions.QiskitError "qiskit.exceptions.QiskitError")

Exceptions raised due to errors in result output.

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

**Parameters**

**error** ([*dict*](https://docs.python.org/3/library/stdtypes.html#dict)) –

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

```python
error = {'status': 403,
         'message': 'Your credits are not enough.',
         'code': 'MAX_CREDITS_EXCEEDED'}
```

Set the error message.
