Skip to content

CloudKitError has no public reason or retryable classification #496

Open

Description

@leogdion

Every CloudKitError case carries the server's reason, but there's no single public accessor, so callers switch over every case to show it. Callers also each decide which errors are worth retrying.

Proposal: a public reason: String? on CloudKitError, and isRetryable (THROTTLED, TRY_AGAIN_LATER, transient network errors) without MistKit retrying itself. Complements #491 (request-level retryAfter) and #489 (redirectURL).

Found while building brightdigit/Mistico (vendored at Packages/MistKit, branch mistico from v1.0.0-beta.6). Tracked in brightdigit/Mistico#119.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions