source: trip-planner-front/node_modules/minipass-fetch/lib/abort-error.js@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 362 bytes
Line 
1'use strict'
2class 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
10 get name () {
11 return 'AbortError'
12 }
13
14 // don't allow name to be overridden, but don't throw either
15 set name (s) {}
16}
17module.exports = AbortError
Note: See TracBrowser for help on using the repository browser.