in ddm-rrm-gerrit-integration/src/main/java/com/epam/digital/data/platform/management/gerritintegration/service/GerritServiceImpl.java [424:439]
public void setTopic(String text, String changeId) {
try {
gerritApi.changes().id(changeId).topic(text);
} catch (HttpStatusException ex) {
if (ex.getStatusCode() == HttpStatus.NOT_FOUND.value()) {
throw new GerritChangeNotFoundException("Could not found candidate with id " + changeId,
ex);
} else {
throw new GerritCommunicationException(
"Something went wrong while setting topic to change with id " + changeId, ex);
}
} catch (RestApiException ex) {
throw new GerritCommunicationException(
"Something went wrong while setting topic to change with id " + changeId, ex);
}
}