utils/network_error library
Functions
-
isNetworkError(
Object error) → bool - Determines whether an error is a network-related failure.
-
shouldReportToCrashlytics(
Object error) → bool - Whether an error is expected to occur when the device cannot reach a network service and should therefore be excluded from Crashlytics errors.