push
github
1188 of 1998 branches covered (59.46%)
Branch coverage included in aggregate %.
147 of 211 new or added lines in 13 files covered. (69.67%)
30011 existing lines in 424 files now uncovered.37457 of 108056 relevant lines covered (34.66%)
0.79 hits per line
| 1 |
// loaders.gl
|
1✔ |
| 2 |
// SPDX-License-Identifier: MIT
|
1✔ |
| 3 |
// Copyright (c) vis.gl contributors
|
1✔ |
| 4 |
|
1✔ |
| 5 |
export class FetchError extends Error { |
|
| 6 |
constructor(message: string, info: {url: string; reason: string; response?: Response}) { |
1✔ |
|
UNCOV
7
|
super(message); |
× |
|
UNCOV
8
|
this.reason = info.reason;
|
× |
|
UNCOV
9
|
this.url = info.url;
|
× |
|
UNCOV
10
|
this.response = info.response;
|
× |
|
UNCOV
11
|
} |
× |
| 12 |
/** A best effort reason for why the fetch failed */
|
1✔ |
| 13 |
reason: string; |
|
|
UNCOV
14
|
/** The URL that failed to load. Empty string if not available. */
|
× |
|
UNCOV
15
|
url: string; |
× |
|
UNCOV
16
|
/** The Response object, if any. */
|
× |
|
UNCOV
17
|
response?: Response; |
× |
| 18 |
} |
1✔ |