setErrorMessage
Sets an error message to be displayed.
Parameters
text
The error message text.
severity
The Severity level of the error.
Sets an error message to be displayed.
The error message text.
The Severity level of the error.