buildOudsAnnotatedErrorMessage
fun buildOudsAnnotatedErrorMessage(builder: OudsAnnotatedErrorMessage.Builder.() -> Unit): OudsAnnotatedErrorMessage
Creates an OudsAnnotatedErrorMessage using a builder DSL.
Example:
val errorMessage = buildOudsAnnotatedErrorMessage {
append("The code you entered is ")
withStrong { append("incorrect") }
}Content copied to clipboard
Return
The constructed annotated error message.
Parameters
builder
Lambda with receiver for building the annotated string.