finki-main
main
|
Last change
on this file since 62b2964 was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
241 bytes
|
| Line | |
|---|
| 1 | class NotCachedError extends Error {
|
|---|
| 2 | constructor (url) {
|
|---|
| 3 | super(`request to ${url} failed: cache mode is 'only-if-cached' but no cached response is available.`)
|
|---|
| 4 | this.code = 'ENOTCACHED'
|
|---|
| 5 | }
|
|---|
| 6 | }
|
|---|
| 7 |
|
|---|
| 8 | module.exports = {
|
|---|
| 9 | NotCachedError,
|
|---|
| 10 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.