Failure

data class Failure(val error: CoreFailure, val messageId: String? = null) : MessageOperationResult

Indicates the message operation failed.

Parameters

error

The error that occurred during the operation.

Constructors

Link copied to clipboard
constructor(error: CoreFailure, messageId: String? = null)

Properties

Link copied to clipboard
val error: CoreFailure
Link copied to clipboard
val messageId: String?

Present when this operation persisted a message. Retry that identity instead of submitting another message.

Functions

Link copied to clipboard
@HiddenFromObjC
fun toEither(): Either<CoreFailure, Unit>

Converts this result to an Either type for internal Kalium use or JVM/Android clients. This function is hidden from iOS/Swift to maintain a clean Swift API.