OudsError

constructor(message: String)

Creates an error with a plain text message.

val error = OudsError("This field is required.")

Parameters

message

The plain text error message to display.


constructor(annotatedMessage: OudsAnnotatedErrorMessage)

Creates an error with an annotated message.

val error = OudsError(
annotatedMessage = buildOudsAnnotatedErrorMessage {
append("Password must be ")
withStrong { append("at least 8 characters") }
}
)

Parameters

annotatedMessage

The annotated error message with rich text formatting.