general_superstaq.superstaq_exceptions
Exceptions for the Superstaq API.
Exceptions
An exception for errors coming from Superstaq's API. |
|
An exception for non-retriable server-side errors. |
|
An exception for attempting to get info about an unsuccessful job. |
|
A warning issued by the server. |
Module Contents
- exception general_superstaq.superstaq_exceptions.SuperstaqException(message: str)
Bases:
ExceptionAn exception for errors coming from Superstaq’s API.
- message
- exception general_superstaq.superstaq_exceptions.SuperstaqServerException(message: str, status_code: int = 400, contact_info: bool = False)
Bases:
SuperstaqExceptionAn exception for non-retriable server-side errors.
- message
- status_code
- status_msg
- exception general_superstaq.superstaq_exceptions.SuperstaqUnsuccessfulJobException(job_id: str, status: str)
Bases:
SuperstaqExceptionAn exception for attempting to get info about an unsuccessful job.
This exception occurs when a job has been cancelled, deleted, or failed, and information about this job is attempted to be accessed.
- exception general_superstaq.superstaq_exceptions.SuperstaqWarning(message: str)
Bases:
WarningA warning issued by the server.