Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/executing/_exceptions.py: 50%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

8 statements  

1 

2class KnownIssue(Exception): 

3 """ 

4 Raised in case of an known problem. Mostly because of cpython bugs. 

5 Executing.node gets set to None in this case. 

6 """ 

7 

8 pass 

9 

10 

11class VerifierFailure(Exception): 

12 """ 

13 Thrown for an unexpected mapping from instruction to ast node 

14 Executing.node gets set to None in this case. 

15 """ 

16 

17 def __init__(self, title, node, instruction): 

18 # type: (object, object, object) -> None 

19 self.node = node 

20 self.instruction = instruction 

21 

22 super().__init__(title) # type: ignore[call-arg]