setErrorMessage

abstract fun setErrorMessage(text: String, severity: Severity = Severity.Error)(source)

Sets an error message to be displayed.