API Reference Source

lib/errors/empty-result-error.js

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