public void addExceptions(Map<String, Exception> exceptionKeyMap) {
    if (exceptionKeyMap == null) {
      return;
    }

    for (Map.Entry<String, Exception> exceptionEntry : exceptionKeyMap.entrySet()) {
      ResultStatus resultStatus = getResultStatusForException(exceptionEntry.getValue());
      excptions.put(exceptionEntry.getKey(), resultStatus);
    }
  }
Add exception thrown during delete of keys.
ambari-server/src/main/java/org/apache/ambari/server/api/services/DeleteResultMetadata.java