Table Of Contents

Previous topic

HRG with the C API

Next topic

Initialization, Finalization and Logging

Error handling and Debugging

Almost all Python wrapped Speect C implementation that set error contexts with the Speect Engine error handling mechanism will raise Python RuntimeError exceptions. There are a few functions that raise other Python exceptions, but these are indicated in the API documentation (see for example the __getitem__ Python list operation of the speect.SList class).


The Error Handling And Debugging module can be disabled with the ERROR_HANDLING CMake build time switch. This will bypass the system, and no Speect C implementation errors will be checked for or logged.

One can query if the Speect Engine error handling mechanism is activated with the speect.errdbg_is_on() method.