Spanish
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

Código fuente para qiskit.providers.ibmq.exceptions

# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2019.
#
# 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 the IBM Quantum Experience provider."""

from qiskit.exceptions import QiskitError


[documentos]class IBMQError(QiskitError): """Base class for errors raised by the provider modules.""" pass
[documentos]class IBMQAccountError(IBMQError): """Base class for errors raised by account management.""" pass
class IBMQAccountValueError(IBMQError): """Value errors raised by account management."""
[documentos]class IBMQAccountCredentialsNotFound(IBMQAccountError): """Errors raised when credentials are not found.""" pass
[documentos]class IBMQAccountCredentialsInvalidFormat(IBMQAccountError): """Errors raised when the credentials format is invalid.""" pass
[documentos]class IBMQAccountCredentialsInvalidToken(IBMQAccountError): """Errors raised when an IBM Quantum Experience token is invalid.""" pass
[documentos]class IBMQAccountCredentialsInvalidUrl(IBMQAccountError): """Errors raised when an IBM Quantum Experience URL is invalid.""" pass
[documentos]class IBMQAccountMultipleCredentialsFound(IBMQAccountError): """Errors raised when multiple credentials are found.""" pass
[documentos]class IBMQProviderError(IBMQAccountError): """Errors related to provider handling.""" pass
[documentos]class IBMQBackendError(IBMQError): """Base class for errors raised by the backend modules.""" pass
[documentos]class IBMQBackendApiError(IBMQBackendError): """Errors that occur unexpectedly when querying the server.""" pass
[documentos]class IBMQBackendApiProtocolError(IBMQBackendApiError): """Errors raised when an unexpected value is received from the server.""" pass
[documentos]class IBMQBackendValueError(IBMQBackendError, ValueError): """Value errors raised by the backend modules.""" pass
class IBMQBackendJobLimitError(IBMQBackendError): """Errors raised when job limit is reached.""" pass class IBMQInputValueError(IBMQError): """Error raised due to invalid input value.""" pass class IBMQNotAuthorizedError(IBMQError): """Error raised when a service is invoked from an unauthorized account.""" pass class IBMQApiError(IBMQError): """Error raised when a server error encountered.""" pass