String (Throwable each) { String baseMessage = each.getMessage() != null ? each.getMessage() : ""; Throwable rootCause = ExceptionUtils.getRootCause(each); String rootMessage = rootCause != null ? rootCause.getMessage() : ""; return StringUtils.isNotEmpty(rootMessage) ? rootMessage : baseMessage; }