IssueReportFieldError

sealed interface IssueReportFieldError(source)

Why one field of a report cannot be filed as written. The limits travel with the error, so the message can quote them without knowing the rules.

Inheritors

Types

Link copied to clipboard

Not an email address.

Link copied to clipboard

A link with too little text of its own around it.

Link copied to clipboard

The field is empty or only whitespace.

Link copied to clipboard

One character, or one short run of characters, repeated over the whole text.

Link copied to clipboard

The description says nothing the title does not.

Link copied to clipboard

Too few letters or digits, in any script: punctuation, symbols or emoji carry the text.

Link copied to clipboard
data class TooLong(val maximumLength: Int) : IssueReportFieldError

More characters than maximumLength, counted after trimming.

Link copied to clipboard
data class TooShort(val minimumLength: Int) : IssueReportFieldError

Fewer characters than minimumLength, counted after trimming.