Fix [SonarQube] Exception classes should be immutable
Fix [SonarQube] Unused local variable (Avoid unused method parameters
such as 'snippetsCollected')
Refactor field name for descriptiveness.