text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  class ErrorHandler extends Error {
      constructor({ message, statusCode }) {
          super(message);
          this.statusCode = statusCode;
          this.status = statusCode.toString().startsWith('4') ? 'failed' : 'error';
          this.isOperational = true;
          Error.captureStackTrace(this, this.constructor);
      }
  }
  exports.default = ErrorHandler;
  //# sourceMappingURL=errorHandler.js.map