import { __exports as error } from '../../../../../../../../_virtual/error.mjs';
import '../../utils/index.mjs';
import { __exports as utils$1 } from '../../../../../../../../_virtual/index.mjs';

Object.defineProperty(error, "__esModule", {
  value: true
});
const utils = utils$1;
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;
