UNPKG

@uppy/utils

Version:

Shared utility functions for Uppy Core and plugins maintained by the Uppy team.

13 lines (12 loc) 365 B
class NetworkError extends Error { cause; isNetworkError; request; 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; } } export default NetworkError;