buildOudsAnnotatedErrorMessage

Creates an OudsAnnotatedErrorMessage using a builder DSL.

Example:

val errorMessage = buildOudsAnnotatedErrorMessage {
append("The code you entered is ")
withStrong { append("incorrect") }
}

Return

The constructed annotated error message.

Parameters

builder

Lambda with receiver for building the annotated string.