Skip to content

Use StandardIntegrityErrorCode for CLIENT_TRANSIENT_ERROR check - #142

Open
LoxaLovecarstone wants to merge 1 commit into
android:mainfrom
LoxaLovecarstone:fix-standard-transient-error-code
Open

LoxaLovecarstone wants to merge 1 commit into
android:mainfrom
LoxaLovecarstone:fix-standard-transient-error-code

Conversation

@LoxaLovecarstone

Copy link
Copy Markdown

Fixes #141

Switches the transient-error check in retryWithExponentialBackoff from
IntegrityErrorCode.CLIENT_TRANSIENT_ERROR (-17) to
StandardIntegrityErrorCode.CLIENT_TRANSIENT_ERROR (-18), since
StandardIntegrityException carries standard error codes. The import and the
KDoc reference are updated accordingly.

See #141 for details and the reference to the official docs.

(Sorry for any awkward English, this was written with AI translation.)

Changes

  • IntegrityRepository.kt: import, comparison, and KDoc (3 lines)

Testing

  • Not tested on a device; the change only swaps a constant.

@LoxaLovecarstone
LoxaLovecarstone requested a review from a team as a code owner October 30, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IntegrityRepositoryImpl.retryWithExponentialBackoff compares against IntegrityErrorCode instead of StandardIntegrityErrorCode

1 participant