Skip to main content

AttachmentErrorHandler

Experimental Alpha

SyncErrorHandler provides custom error handling for attachment sync operations. Implementations determine whether failed operations should be retried or archived.

This is currently experimental and may change without a major version bump.

Methods​

onDeleteError()​

onDeleteError(attachment, error): Promise<boolean>;

Alpha

Handles a delete error for a specific attachment.

Parameters​

ParameterTypeDescription
attachmentAttachmentRecordThe attachment that failed to delete
errorunknownThe error encountered during the delete

Returns​

Promise<boolean>

true to retry the operation, false to archive the attachment


onDownloadError()​

onDownloadError(attachment, error): Promise<boolean>;

Alpha

Handles a download error for a specific attachment.

Parameters​

ParameterTypeDescription
attachmentAttachmentRecordThe attachment that failed to download
errorunknownThe error encountered during the download

Returns​

Promise<boolean>

true to retry the operation, false to archive the attachment


onUploadError()​

onUploadError(attachment, error): Promise<boolean>;

Alpha

Handles an upload error for a specific attachment.

Parameters​

ParameterTypeDescription
attachmentAttachmentRecordThe attachment that failed to upload
errorunknownThe error encountered during the upload

Returns​

Promise<boolean>

true to retry the operation, false to archive the attachment