in ddm-rrm-gerrit-integration/src/main/java/com/epam/digital/data/platform/management/gerritintegration/service/GerritServiceImpl.java [198:210]
public Map<String, FileInfoDto> getListOfChangesInMR(String changeId) {
try {
return gerritMapper.toFileDto(gerritApi.changes().id(changeId).current().files());
} catch (HttpStatusException e) {
if (e.getStatusCode() == HttpStatus.NOT_FOUND.value()) {
throw new GerritChangeNotFoundException("Could not found candidate with id " + changeId, e);
}
} catch (RestApiException ex) {
throw new GerritCommunicationException(
"Something went wrong wile getting changes in candidate with id " + changeId, ex);
}
return null;
}