isRetryable property

bool get isRetryable

Whether this error type is safe to retry automatically.

Implementation

bool get isRetryable => switch (type) {
  ApiErrorType.rateLimited => true,
  ApiErrorType.overloaded => true,
  ApiErrorType.connectionTimeout => true,
  ApiErrorType.connectionReset => true,
  ApiErrorType.serverError => true,
  _ => false,
};