Module error handling

Definitions

Precisions

We need to have something uniform between all the modules to avoid inconsistencies.