UNPKG
@remix-run/web-fetch
Version:
latest (4.4.2)
pre (4.4.2-pre.0)
4.4.2
4.4.2-pre.0
4.4.1
4.4.0
4.4.0-pre.0
4.3.8
4.3.7
4.3.6
4.3.5
4.3.4
4.3.3
4.3.2
4.3.1
4.3.0
4.2.0
4.1.3
4.1.2
4.1.1
4.1.0
Web API compatible fetch implementation
github.com/remix-run/web-std-io
remix-run/web-std-io
@remix-run/web-fetch
/
src
/
errors
/
abort-error.js
15 lines
(13 loc)
•
284 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
{
FetchBaseError
}
from
'./base.js'
;
/** * AbortError interface for cancelled requests */
export
class
AbortError
extends
FetchBaseError
{
/** *
@param
{
string
} message *
@param
{
string
} [type] */
constructor
(
message,
type
=
'aborted'
) {
super
(message,
type
); } }