Addressing the Sonar's critical error to remove e.printStackTrace()