code: public List<ErrorDetail> getErrorDetails() {
          List<ErrorDetail> result = new ArrayList<ErrorDetail>();
          List<ErrorDetailType> errorDetailTypes = getContent().getErrorDetails();
          if (errorDetailTypes != null) {
              for (ErrorDetailType errorDetailType : errorDetailTypes) {
                  ErrorDetail errorDetail = new ErrorDetail(
                          errorDetailType.getCode(), errorDetailType.getMessage());
                  result.add(errorDetail);
              }
              return result;
          }
          return null;
      }
docs: Gets the error details.
  
  @return the error details