Skip to content

Commit 3d4bf6f

Browse files
committed
Added new Warning classes.
1 parent 46f7a29 commit 3d4bf6f

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

pyVHDLModel/Exception.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,29 @@
3636
message in english, each exception object contains one or multiple references to the exception's context.
3737
"""
3838
from pyTooling.Decorators import export, readonly
39+
from pyTooling.Warning import Warning, CriticalWarning
3940

40-
from pyVHDLModel.Symbol import Symbol
41+
from pyVHDLModel.Symbol import Symbol
42+
43+
44+
@export
45+
class VHDLModelWarning(Warning):
46+
pass
47+
48+
49+
@export
50+
class NotImplementedWarning(VHDLModelWarning):
51+
pass
52+
53+
54+
@export
55+
class VHDLModelCriticalWarning(Warning):
56+
pass
57+
58+
59+
@export
60+
class BlackboxWarning(VHDLModelCriticalWarning):
61+
pass
4162

4263

4364
@export

0 commit comments

Comments
 (0)