SyncErrorHandler

Interface for handling errors during attachment operations. Implementations determine whether failed operations should be retried. Attachment records are archived if an operation fails and should not be retried.

Functions

Link copied to clipboard
abstract suspend fun onDeleteError(attachment: Attachment, exception: Exception): Boolean

Determines whether the provided attachment delete operation should be retried.

Link copied to clipboard
abstract suspend fun onDownloadError(attachment: Attachment, exception: Exception): Boolean

Determines whether the provided attachment download operation should be retried.

Link copied to clipboard
abstract suspend fun onUploadError(attachment: Attachment, exception: Exception): Boolean

Determines whether the provided attachment upload operation should be retried.