timeout-error.js 307 B

123456789101112131415
  1. 'use strict';
  2. const DatabaseError = require('./../database-error');
  3. /**
  4. * Thrown when a database query times out because of a deadlock
  5. */
  6. class TimeoutError extends DatabaseError {
  7. constructor(parent) {
  8. super(parent);
  9. this.name = 'SequelizeTimeoutError';
  10. }
  11. }
  12. module.exports = TimeoutError;