general_superstaq.superstaq_exceptions

Exceptions for the Superstaq API.

Exceptions

SuperstaqException

An exception for errors coming from Superstaq's API.

SuperstaqServerException

An exception for non-retriable server-side errors.

SuperstaqUnsuccessfulJobException

An exception for attempting to get info about an unsuccessful job.

SuperstaqWarning

A warning issued by the server.

Module Contents

exception general_superstaq.superstaq_exceptions.SuperstaqException(message: str)

Bases: Exception

An 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: SuperstaqException

An exception for non-retriable server-side errors.

status_code = 400
exception general_superstaq.superstaq_exceptions.SuperstaqUnsuccessfulJobException(job_id: str, status: str)

Bases: SuperstaqException

An 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: Warning

A warning issued by the server.