Fixed the instead of throwing validation message, it throwing exception in code quality before starting sonar