diff --git a/qiskit_ibm_runtime/exceptions.py b/qiskit_ibm_runtime/exceptions.py index 9137b4307..3902a53d1 100644 --- a/qiskit_ibm_runtime/exceptions.py +++ b/qiskit_ibm_runtime/exceptions.py @@ -13,6 +13,7 @@ """Exceptions related to the IBM Runtime service.""" from qiskit.exceptions import QiskitError +from qiskit.providers.exceptions import JobTimeoutError class IBMError(QiskitError): @@ -87,7 +88,7 @@ class RuntimeInvalidStateError(IBMRuntimeError): pass -class RuntimeJobTimeoutError(IBMRuntimeError): +class RuntimeJobTimeoutError(JobTimeoutError): """Error raised when waiting for job times out.""" pass