empty-result-error.js 344 B

123456789101112131415
  1. 'use strict';
  2. const BaseError = require('./base-error');
  3. /**
  4. * Thrown when a record was not found, Usually used with rejectOnEmpty mode (see message for details)
  5. */
  6. class EmptyResultError extends BaseError {
  7. constructor(message) {
  8. super(message);
  9. this.name = 'SequelizeEmptyResultError';
  10. }
  11. }
  12. module.exports = EmptyResultError;