isRetryable method
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;
}