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
data class LocalDeviceFailedScheduling(val reason: ScheduledMessageFailure.LocalDeviceFailedScheduling.Reason, val message: String?) : ScheduledMessageFailure
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
data class ServerFailedPublishing(val reason: ScheduledMessageFailure.ServerFailedPublishing.Reason?) : ScheduledMessageFailure
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
data class ServerRejectedScheduling(val reason: ScheduledMessageFailure.ServerRejectedScheduling.Reason?, val message: String) : ScheduledMessageFailure
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.