[PRD-1054] Fixed deprecated printing of exception message