Control.setErrorMsgClass

Sets one or more CSS classes to be applied to error messages when the messages are displayed locally to the control. Multiple classes are specified by using a space between the class names, as per the HTML class parameter.

These classes are configured in the designer using the the Advanced Properties button of the Message options styling dialog.

Further documentation.

Parameters

java.lang.String  errorMsgClass,