Source code for qiskit_ibm_provider.job.exceptions
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Exceptions related to IBM Quantum jobs."""
from qiskit.providers.exceptions import JobError, JobTimeoutError
from ..exceptions import IBMError
[docs]class IBMJobError(JobError, IBMError):
"""Base class for errors raised by the job modules."""
pass
[docs]class IBMJobApiError(IBMJobError):
"""Errors that occur unexpectedly when querying the server."""
pass
[docs]class IBMJobInvalidStateError(IBMJobError):
"""Errors raised when a job is not in a valid state for the operation."""
pass
[docs]class IBMJobTimeoutError(JobTimeoutError, IBMJobError):
"""Errors raised when a job operation times out."""
pass
class IBMJobNotFoundError(IBMJobError):
"""Errors raised when a job cannot be found."""
pass