aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/Common.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-22 21:40:20 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-22 21:40:20 +0200
commitc5a4e881debcc75bdb96cdddd4abda10fd778b68 (patch)
tree9cb1bbb2510f0fce70d7ae36436bc22631698d84 /pyGHDL/dom/Common.py
parentea328fa671fc42569a688c8dfb308d87f42771c3 (diff)
downloadghdl-c5a4e881debcc75bdb96cdddd4abda10fd778b68.tar.gz
ghdl-c5a4e881debcc75bdb96cdddd4abda10fd778b68.tar.bz2
ghdl-c5a4e881debcc75bdb96cdddd4abda10fd778b68.zip
Improved error handling.
Diffstat (limited to 'pyGHDL/dom/Common.py')
-rw-r--r--pyGHDL/dom/Common.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/pyGHDL/dom/Common.py b/pyGHDL/dom/Common.py
index 984f06e86..43e8ce497 100644
--- a/pyGHDL/dom/Common.py
+++ b/pyGHDL/dom/Common.py
@@ -51,16 +51,3 @@ class DOMException(GHDLBaseException):
@export
class GHDLException(GHDLBaseException):
pass
-
-
-@export
-class GHDLMixin:
- def CheckForErrors(self) -> None:
- errorCount = errorout_memory.Get_Nbr_Messages()
- if errorCount != 0:
- for i in range(errorCount):
- print(errorout_memory.Get_Error_Message(i + 1))
-
- raise DOMException("Error in libghdl.") from LibGHDLException(
- "libghdl: Internal error 2."
- )