code: public Map<String, String> getErrorDetails() {
          // Add stacktrace and/or comment fields.
          Map<String, String> detailMap = new LinkedHashMap<String, String>();
          if (m_resultFields.containsKey(COMMENT)) {
              detailMap.put(COMMENT, m_resultFields.get(COMMENT));
          }
          if (m_resultFields.containsKey(STACK_TRACE)) {
              detailMap.put(STACK_TRACE, m_resultFields.get(STACK_TRACE));
          }
          return detailMap;
      }
docs: Get the error details for this response object, if any exists. The error details is
  typically a stack trace or comment message. The details are returned as a map of
  detail names to values.
  
  @return  Map of error detail names to values, if any. If there are no details, the
  map will be empty (not null).