Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated QiskitIndexError removed #8209

Merged
merged 4 commits into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions qiskit/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"""Exceptions for errors raised by Qiskit."""

from typing import Optional
import warnings


class QiskitError(Exception):
Expand All @@ -29,19 +28,6 @@ def __str__(self):
return repr(self.message)


class QiskitIndexError(QiskitError, IndexError):
"""Raised when a sequence subscript is out of range."""

def __init__(self, *args):
"""Set the error message."""
warnings.warn(
"QiskitIndexError class is being deprecated and it is going to be remove in the future",
DeprecationWarning,
stacklevel=2,
)
super().__init__(*args)


class QiskitUserConfigError(QiskitError):
"""Raised when an error is encountered reading a user config file."""

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
upgrade:
- |
The exception ``qiskit.exceptions.QiskitIndexError`` has been
removed and no longer exists as per the deprecation notice from qiskit-terra
0.18.0 (released on Jul 12, 2021).