Use environment index for module-class variable
Add Exception.h