Coverage for /home/runner/work/zserio/zserio/compiler/extensions/python/runtime/src/zserio/exception.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2024-10-29 13:10 +0000

1""" 

2The module implements exceptions for Zserio python runtime library. 

3""" 

4 

5from zserio.cppbind import import_cpp_class 

6 

7 

8class PythonRuntimeException(Exception): 

9 """ 

10 Exception thrown in case of an error in Zserio python runtime library. 

11 """ 

12 

13 

14PythonRuntimeException = ( # type: ignore 

15 import_cpp_class("PythonRuntimeException", exception_class=PythonRuntimeException) or PythonRuntimeException 

16)