ValidationError

sealed class ValidationError

Represents a validation error for the user input.

Inheritors

Types

Link copied to clipboard
data class AttachmentCountExceeded(val attachmentCount: Int, val maxAttachmentCount: Int) : ValidationError

Represents a validation error that happens when the number of selected attachments is too big to be sent in a single message.

Link copied to clipboard
data class AttachmentSizeExceeded(val attachments: List<Attachment>, val maxAttachmentSize: Long) : ValidationError

Represents a validation error that happens when one or several attachments are too big to be handled by the server.

Link copied to clipboard

Triggered if the input contains a link and the user is not allowed to send them.

Link copied to clipboard
data class MessageLengthExceeded(val messageLength: Int, val maxMessageLength: Int) : ValidationError

Represents a validation error that happens when the message length in the message input exceed the maximum allowed message length.