NetworkError.js 299 B

1234567891011
  1. class NetworkError extends Error {
  2. constructor (error, xhr = null) {
  3. super(`This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.`)
  4. this.cause = error
  5. this.isNetworkError = true
  6. this.request = xhr
  7. }
  8. }
  9. export default NetworkError