print exceptions without accessing their members