method ErrorUtils.isRetryable
ErrorUtils.isRetryable(error: unknown): boolean

Checks if an error is retryable (network-related). Use this to determine if an operation should be retried.

Parameters

error: unknown
  • Error to check

Return Type

boolean

True if the error is retryable

Usage

import { ErrorUtils } from ".";