Add exception constructors
SonarQube issues
Refactor Generator StaticResources