uppy/packages/@uppy/utils/src/NetworkError.js
2021-08-17 20:14:49 +02:00

11 lines
301 B
JavaScript

class NetworkError extends Error {
constructor (error, xhr = null) {
super(`This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.`)
this.cause = error
this.isNetworkError = true
this.request = xhr
}
}
module.exports = NetworkError