Resolving Sonar Blocker: "Throwable and Error classes should not be
caught"