finki-main
main
|
Last change
on this file since 81bc7da was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
362 bytes
|
| Line | |
|---|
| 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.