<commit_before>package com.continuuity.api.data;

public class OperationException extends Exception {

  int statusCode;

  public OperationException(int statusCode, String message) {
    super(message);
    this.statusCode = statusCode;
  }

  public OperationException(int statusCode, String message, Throwable cause) {
    super(message, cause);
    this.statusCode = statusCode;
  }

  public int getStatus() {
    return this.statusCode;
  }

}<commit_msg>ENG-508 Add error handling to data fabric APIs<commit_after>package com.continuuity.api.data;

public class OperationException extends Exception {

  int statusCode;

  public OperationException(int statusCode, String message) {
    super(message);
    this.statusCode = statusCode;
  }

  public OperationException(int statusCode, String message, Throwable cause) {
    super(message, cause);
    this.statusCode = statusCode;
  }

  public int getStatus() {
    return this.statusCode;
  }

  public String getStatusMessage() {
    return String.format("[%d] %s", this.statusCode, super.getMessage());
  }

  @Override
  public String getMessage() {
    return getStatusMessage();
  }

  public String getMessageOnly() {
    return super.getMessage();
  }
}
{'fraction_non_alphanumeric': 0.0959016393442623, 'fraction_numerical': 0.002459016393442623, 'mean_word_length': 4.045454545454546, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6035036', 'n_tokens_mistral': 355, 'n_tokens_neox': 341, 'n_words': 92}