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
« 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######################################################################
8"""
9P4OO Error Classes to help distinguish Warning/Error/Fatal issues
11"""
14class P4OOError(Exception):
15 """
16 Base class for all P4OO Exceptions
17 """
20class P4OOFatal(P4OOError):
21 """ Generic Error - Fatal """
24class P4OOWarning(P4OOError):
25 """ Generic Error - nonFatal """
28class P4OOBadSubClass(P4OOFatal):
29 """ Subclass does not comform to interface spec or cannot be found """
32class P4Error(P4OOError):
33 """ Generic Internal Error """
36class P4Fatal(P4OOFatal):
37 """ Generic Internal Error - P4Python did something we didn't expect. """
40class P4Warning(P4OOWarning):
41 """ Generic Internal Warning - P4Python did something we didn't expect. """