Skip to content

Commit

Permalink
Deprecated QiskitIndexError removed (#8209)
Browse files Browse the repository at this point in the history
* QiskitIndexError removed

* date

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
1ucian0 and mergify[bot] authored Jun 23, 2022
1 parent 57540c1 commit f3877a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
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).

0 comments on commit f3877a2

Please sign in to comment.