We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use wrapper as : @ReactiveTransactional private Function<Calendar, Uni<? extends Calendar>> createCalendarFunction() { return calendar -> { try { return repoCalendar.persistAndFlush(calendar); } catch (PersistenceException ex) { LOGGER.info("PersistenceException: {}", ex); if (ex.getMessage().contains("Duplicate entry")) { throw new DuplicateObjectException("Calendar", calendar.calendarKey.toString()); } else { throw new com.trikorasolutions.keycloak.client.exception.TrikoraGenericException(ex.getMessage()); } } }; }
In order to handle exceptions from the hibernate
The text was updated successfully, but these errors were encountered:
acasanova99
No branches or pull requests
Use wrapper as :
@ReactiveTransactional
private Function<Calendar, Uni<? extends Calendar>> createCalendarFunction() {
return calendar -> {
try {
return repoCalendar.persistAndFlush(calendar);
} catch (PersistenceException ex) {
LOGGER.info("PersistenceException: {}", ex);
if (ex.getMessage().contains("Duplicate entry")) {
throw new DuplicateObjectException("Calendar", calendar.calendarKey.toString());
} else {
throw new com.trikorasolutions.keycloak.client.exception.TrikoraGenericException(ex.getMessage());
}
}
};
}
In order to handle exceptions from the hibernate
The text was updated successfully, but these errors were encountered: