setErrorMsg

Sets the error message to be displayed if the validation fails.

Parameters

errorMsg

The error message.