isRetryable method

Future<bool> isRetryable(
  1. Exception e
)

Checks if the exception is retryable

Implementation

Future<bool> isRetryable(Exception e) async {
  if (e is InfluxDBException && e.statusCode >= 429) {
    return true;
  }
  if (e is SocketException) {
    return true;
  }
  return false;
}