Note that because Groovy validation rules can conditionally raise one of several exceptions, you can add multiple error messages on this tabbed page. The message you select is used when the validation rule returns false.
To add a message, click the Existing Message button (denoted by a magnifying glass). In the Select Text Resource dialog box that appears, click New.
For this example, in the Create Text Resource dialog box, enter the following value as the Key:
and the following error message in the Value text box:
If department name ends in S the salary must be multiple of five.