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

# qiskit.result.ResultError

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

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

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.
