public void deleteChanges()

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


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