<commit_before>package org.openlmis.fulfillment.referencedata.service;

import org.springframework.http.HttpStatus;

import lombok.Getter;

/**
 * Signals we were unable to retrieve reference data
 * due to a communication error.
 */
public class ReferenceDataRetrievalException extends RuntimeException {

  @Getter
  private String resource;

  @Getter
  private HttpStatus status;

  @Getter
  private String response;

  /**
   * Constructs the exception.
   *
   * @param resource the resource that we were trying to retrieve
   * @param status   the http status that was returned
   * @param response the response from referencedata service
   */
  public ReferenceDataRetrievalException(String resource,
                                         HttpStatus status, String response) {
    super(String.format("Unable to retrieve %s. Error code: %d, response message: %s",
        resource, status.value(), response));
    this.resource = resource;
    this.status = status;
    this.response = response;
  }
}<commit_msg>Made a final properties in ReferenceDataRetrievalException<commit_after>package org.openlmis.fulfillment.referencedata.service;

import org.springframework.http.HttpStatus;

import lombok.Getter;

/**
 * Signals we were unable to retrieve reference data
 * due to a communication error.
 */
@Getter
public class ReferenceDataRetrievalException extends RuntimeException {
  private final String resource;
  private final HttpStatus status;
  private final String response;

  /**
   * Constructs the exception.
   *
   * @param resource the resource that we were trying to retrieve
   * @param status   the http status that was returned
   * @param response the response from referencedata service
   */
  ReferenceDataRetrievalException(String resource, HttpStatus status, String response) {
    super(String.format("Unable to retrieve %s. Error code: %d, response message: %s",
        resource, status.value(), response));
    this.resource = resource;
    this.status = status;
    this.response = response;
  }
}
{'fraction_non_alphanumeric': 0.07737512242899118, 'fraction_numerical': 0.0, 'mean_word_length': 3.6857798165137616, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '145608', 'n_tokens_mistral': 525, 'n_tokens_neox': 521, 'n_words': 185}