[PAXEXAM-582] more robust exception handling, Checkstyle