33 lines
877 B
Plaintext
33 lines
877 B
Plaintext
---
|
||
title: ResultError
|
||
description: API reference for qiskit.result.ResultError
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: exception
|
||
python_api_name: qiskit.result.ResultError
|
||
---
|
||
|
||
<span id="qiskit-result-resulterror" />
|
||
|
||
# qiskit.result.ResultError
|
||
|
||
<Class id="qiskit.result.ResultError" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.24/qiskit/result/exceptions.py" signature="ResultError(error)" modifiers="exception">
|
||
Exceptions raised due to errors in result output.
|
||
|
||
It may be better for the Qiskit API to raise this exception.
|
||
|
||
**Parameters**
|
||
|
||
**error** (*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.
|
||
</Class>
|
||
|