Coverage for src/P4OO/Exceptions.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.4.1, created at 2024-09-07 17:17 +0000

1###################################################################### 

2# Copyright (c)2024 David L. Armstrong. 

3# 

4# P4OO._Exceptions.py 

5# 

6###################################################################### 

7 

8""" 

9P4OO Error Classes to help distinguish Warning/Error/Fatal issues 

10 

11""" 

12 

13 

14class P4OOError(Exception): 

15 """ 

16 Base class for all P4OO Exceptions 

17 """ 

18 

19 

20class P4OOFatal(P4OOError): 

21 """ Generic Error - Fatal """ 

22 

23 

24class P4OOWarning(P4OOError): 

25 """ Generic Error - nonFatal """ 

26 

27 

28class P4OOBadSubClass(P4OOFatal): 

29 """ Subclass does not comform to interface spec or cannot be found """ 

30 

31 

32class P4Error(P4OOError): 

33 """ Generic Internal Error """ 

34 

35 

36class P4Fatal(P4OOFatal): 

37 """ Generic Internal Error - P4Python did something we didn't expect. """ 

38 

39 

40class P4Warning(P4OOWarning): 

41 """ Generic Internal Warning - P4Python did something we didn't expect. """