public void declineChange()

in ddm-rrm-gerrit-integration/src/main/java/com/epam/digital/data/platform/management/gerritintegration/service/GerritServiceImpl.java [335:350]


  public void declineChange(String changeId) {
    try {
      gerritApi.changes().id(changeId).abandon();
    } 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 wile declining candidate with id " + changeId, ex);
      }
    } catch (RestApiException ex) {
      throw new GerritCommunicationException(
          "Something went wrong wile declining candidate with id " + changeId, ex);
    }
  }