diff options
Diffstat (limited to 'node_modules/make-fetch-happen/lib/cache/errors.js')
-rw-r--r-- | node_modules/make-fetch-happen/lib/cache/errors.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/make-fetch-happen/lib/cache/errors.js b/node_modules/make-fetch-happen/lib/cache/errors.js new file mode 100644 index 0000000..67a6657 --- /dev/null +++ b/node_modules/make-fetch-happen/lib/cache/errors.js @@ -0,0 +1,11 @@ +class NotCachedError extends Error { + constructor (url) { + /* eslint-disable-next-line max-len */ + super(`request to ${url} failed: cache mode is 'only-if-cached' but no cached response is available.`) + this.code = 'ENOTCACHED' + } +} + +module.exports = { + NotCachedError, +} |