Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
362 bytes
|
Rev | Line | |
---|
[6a3a178] | 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 |
|
---|
| 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 | }
|
---|
| 17 | module.exports = AbortError
|
---|
Note:
See
TracBrowser
for help on using the repository browser.