aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/libghdl/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyGHDL/libghdl/__init__.py')
-rw-r--r--pyGHDL/libghdl/__init__.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/pyGHDL/libghdl/__init__.py b/pyGHDL/libghdl/__init__.py
index 0d3c75fa1..525710590 100644
--- a/pyGHDL/libghdl/__init__.py
+++ b/pyGHDL/libghdl/__init__.py
@@ -37,6 +37,7 @@ import os
import sys
from pathlib import Path
from shutil import which
+from typing import List
from pydecor import export
@@ -48,7 +49,15 @@ from pyGHDL.libghdl.version import __version__
class LibGHDLException(GHDLBaseException):
- pass
+ _internalErrors: List[str]
+
+ def __init__(self, message: str, errors: List[str]):
+ super().__init__(message)
+ self._internalErrors = errors
+
+ @property
+ def InternalErrors(self):
+ return self._internalErrors
def _get_libghdl_name() -> Path: