ScheduledMessageFailure

@Immutable
abstract class ScheduledMessageFailure

Why a ScheduledMessage could not be scheduled or sent, telling whether the server or the local device failed. More kinds can be added in a minor version, so a when on it needs an else branch.

Inheritors

Types

Link copied to clipboard

The local device could not send the changes of the message to the server, for example because an attachment could not be uploaded.

Link copied to clipboard

The server could not send the message at its date, for example because the user was banned. The message can only be deleted, or scheduled again as a new message.

Link copied to clipboard

The server rejected scheduling, editing or rescheduling the message, for example because the scheduling limit of the channel is reached. The latest changes are kept.

Properties

Link copied to clipboard
abstract val isRetryable: Boolean

Whether sending the same changes again can succeed without changing them.