Home
last modified time | relevance | path

Searched refs:FetchError (Results 1 – 5 of 5) sorted by relevance

/third_party/node/deps/npm/node_modules/node-fetch-npm/src/
Dfetch-error.js17 module.exports = FetchError
18 function FetchError (message, type, systemError) { class
33 FetchError.prototype = Object.create(Error.prototype)
34 FetchError.prototype.constructor = FetchError
35 FetchError.prototype.name = 'FetchError'
Dindex.js21 const FetchError = require('./fetch-error') constant
61 reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout'))
68 … reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err))
77 reject(new FetchError(`redirect mode is set to error: ${request.url}`, 'no-redirect'))
82 reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect'))
87 … reject(new FetchError(`redirect location header missing at: ${request.url}`, 'invalid-redirect'))
214 exports.FetchError = FetchError
Dbody.js15 const FetchError = require('./fetch-error.js') constant
189 …reject(new FetchError(`Response timeout while trying to fetch ${this.url} (over ${this.timeout}ms)…
195 …reject(new FetchError(`Invalid response body while trying to fetch ${this.url}: ${err.message}`, '…
205 reject(new FetchError(`content size at ${this.url} over limit: ${this.size}`, 'max-size'))
/third_party/node/deps/npm/node_modules/node-fetch-npm/
DCHANGELOG.md119 - Enhance: error handling document to explain `FetchError` design
161 - Enhance: `FetchError` contains `err.type` and `err.code`, allows for better error handling (thx t…
DREADME.md372 ### Class: FetchError