import { __exports as error } from '../../../../../../../../_virtual/error.mjs';
import { __require as requireUtils } from '../../utils/index.mjs';

var hasRequiredError;
function requireError() {
  if (hasRequiredError) return error;
  hasRequiredError = 1;
  Object.defineProperty(error, "__esModule", {
    value: true
  });
  const utils = requireUtils();
  class ErrorFilter {
    constructor(_settings) {
      this._settings = _settings;
    }
    getFilter() {
      return error => this._isNonFatalError(error);
    }
    _isNonFatalError(error) {
      return utils.errno.isEnoentCodeError(error) || this._settings.suppressErrors;
    }
  }
  error.default = ErrorFilter;
  return error;
}

export { requireError as __require };
