You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

abort-error.js 362B

1234567891011121314151617
  1. 'use strict'
  2. class AbortError extends Error {
  3. constructor (message) {
  4. super(message)
  5. this.code = 'FETCH_ABORTED'
  6. this.type = 'aborted'
  7. Error.captureStackTrace(this, this.constructor)
  8. }
  9. get name () {
  10. return 'AbortError'
  11. }
  12. // don't allow name to be overridden, but don't throw either
  13. set name (s) {}
  14. }
  15. module.exports = AbortError