Skip to content

Commit

Permalink
remove unused code from exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
TolisChal committed Sep 4, 2024
1 parent d4055db commit 0fcd251
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions qiskit_optimization/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,3 @@ class AlgorithmError(QiskitError):
"""For Algorithm specific errors."""

pass


class QiskitAlgorithmsWarning(UserWarning):
"""Base class for warnings raised by Qiskit Algorithms."""

def __init__(self, *message):
"""Set the error message."""
super().__init__(" ".join(message))
self.message = " ".join(message)

def __str__(self):
"""Return the message."""
return repr(self.message)


class QiskitAlgorithmsOptimizersWarning(QiskitAlgorithmsWarning):
"""For Algorithm specific warnings."""

pass

0 comments on commit 0fcd251

Please sign in to comment.