AttachmentFailure

data class AttachmentFailure(var cause: AttachmentFailureCause, var credentialKind: CredentialFailureKind?, var retryable: Boolean, var missingScope: Boolean, var httpStatus: UShort?)

The failure of an attachment operation. A thrown XmtpError.Attachment and a Failed pending status carry the same record.

Constructors

Link copied to clipboard
constructor(cause: AttachmentFailureCause, credentialKind: CredentialFailureKind?, retryable: Boolean, missingScope: Boolean, httpStatus: UShort?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The final status from the storage target or the download host.

Link copied to clipboard

The backend rejected the credential's scope.

Link copied to clipboard

For the Credential cause, whether the credential source can succeed on a later attempt, which also decides whether the operation can. For another cause the thrown error's retryable detail says whether the operation can.