in ddm-rrm-gerrit-integration/src/main/java/com/epam/digital/data/platform/management/gerritintegration/service/GerritServiceImpl.java [406:421]
public String getTopic(String changeId) {
try {
return gerritApi.changes().id(changeId).topic();
} 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 getting topic from candidate with id " + changeId, ex);
}
} catch (RestApiException ex) {
throw new GerritCommunicationException(
"Something went wrong while getting topic from candidate with id " + changeId, ex);
}
}