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.
- Annotations
-
- @experimental
Constructors
- AttachmentErrorHandler.new({required AttachmentExceptionHandler onDeleteError, required AttachmentExceptionHandler onDownloadError, required AttachmentExceptionHandler onUploadError})
-
Creates an implementation of an error handler by delegating to the
individual functions for delete, download and upload errors.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDeleteError(
Attachment attachment, Object exception, StackTrace stackTrace) → Future< bool> - Determines whether the provided attachment delete operation should be retried.
-
onDownloadError(
Attachment attachment, Object exception, StackTrace stackTrace) → Future< bool> - Determines whether the provided attachment download operation should be retried.
-
onUploadError(
Attachment attachment, Object exception, StackTrace stackTrace) → Future< bool> - Determines whether the provided attachment upload operation should be retried.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited