public void addException(String key, Exception ex) {
    Validate.notNull(key);
    Validate.notNull(ex);
    ResultStatus resultStatus = getResultStatusForException(ex);
    excptions.put(key, resultStatus);
  }
Add exception thrown during delete of a key.
@param key - successfully deleted keys.
@param ex - exception
ambari-server/src/main/java/org/apache/ambari/server/api/services/DeleteResultMetadata.java