_exceptions.py 568 B

12345678910111213141516171819202122
  1. class KnownIssue(Exception):
  2. """
  3. Raised in case of an known problem. Mostly because of cpython bugs.
  4. Executing.node gets set to None in this case.
  5. """
  6. pass
  7. class VerifierFailure(Exception):
  8. """
  9. Thrown for an unexpected mapping from instruction to ast node
  10. Executing.node gets set to None in this case.
  11. """
  12. def __init__(self, title, node, instruction):
  13. # type: (object, object, object) -> None
  14. self.node = node
  15. self.instruction = instruction
  16. super().__init__(title) # type: ignore[call-arg]