<commit_before>/*
 * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
 * (the "License"). You may not use this work except in compliance with the License, which is
 * available at www.apache.org/licenses/LICENSE-2.0
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied, as more fully set forth in the License.
 *
 * See the NOTICE file distributed with this work for information regarding copyright ownership.
 */

package alluxio.exception.status;

import alluxio.exception.AlluxioRuntimeException;
import alluxio.grpc.ErrorType;

import io.grpc.Status;

/**
 * Exception indicating that some requested entity (e.g., file or directory) was not found.
 */
public class NotFoundRuntimeException extends AlluxioRuntimeException {
  private static final Status STATUS = Status.NOT_FOUND;
  private static final ErrorType ERROR_TYPE = ErrorType.User;

  /**
   * Constructor.
   * @param t cause
   */
  public NotFoundRuntimeException(Throwable t) {
    super(STATUS, t, ERROR_TYPE);
  }
}<commit_msg>Add new constructor to NotFoundRuntimeException<commit_after>/*
 * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
 * (the "License"). You may not use this work except in compliance with the License, which is
 * available at www.apache.org/licenses/LICENSE-2.0
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied, as more fully set forth in the License.
 *
 * See the NOTICE file distributed with this work for information regarding copyright ownership.
 */

package alluxio.exception.status;

import alluxio.exception.AlluxioRuntimeException;
import alluxio.grpc.ErrorType;

import io.grpc.Status;

/**
 * Exception indicating that some requested entity (e.g., file or directory) was not found.
 */
public class NotFoundRuntimeException extends AlluxioRuntimeException {
  private static final Status STATUS = Status.NOT_FOUND;
  private static final ErrorType ERROR_TYPE = ErrorType.User;
  private static final boolean RETRYABLE = false;

  /**
   * Constructor.
   * @param t cause
   */
  public NotFoundRuntimeException(Throwable t) {
    super(STATUS, t, ERROR_TYPE);
  }

  /**
   * Constructor.
   * @param message error message
   */
  public NotFoundRuntimeException(String message) {
    super(STATUS, message, ERROR_TYPE, RETRYABLE);
  }
}
{'fraction_non_alphanumeric': 0.07782258064516129, 'fraction_numerical': 0.0032258064516129032, 'mean_word_length': 4.179540709812109, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6349328', 'n_tokens_mistral': 666, 'n_tokens_neox': 663, 'n_words': 266}