Source code for qiskit.providers.ibmq.managed.exceptions

# -*- coding: utf-8 -*-

# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2020.
#
# 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.

"""Exception for the Job Manager modules."""

from ..exceptions import IBMQError


[docs]class IBMQJobManagerError(IBMQError): """Base class for errors raise by the Job Manager.""" pass
[docs]class IBMQJobManagerInvalidStateError(IBMQJobManagerError): """Errors raised when an operation is invoked in an invalid state.""" pass
[docs]class IBMQJobManagerTimeoutError(IBMQJobManagerError): """Errors raised when a Job Manager operation times out.""" pass
[docs]class IBMQJobManagerJobNotFound(IBMQJobManagerError): """Errors raised when a job cannot be found.""" pass
[docs]class IBMQManagedResultDataNotAvailable(IBMQJobManagerError): """Errors raised when result data is not available.""" pass
[docs]class IBMQJobManagerUnknownJobSet(IBMQJobManagerError): """Errors raised when the job set ID is unknown.""" pass