Sonar violation removed: Avoid Catching Throwable, replaced by Exception instead.