Messages metadata file is used to define the error, question, and informational messages used by the system.
What does this section cover?
This section describes how custom messages can be defined. For more information on creating new messages, please go to Implement Messages.
Messages File
Custom messages are declared in messages.xml file, which must be created under <custom_project>/web/WebContent/metadata directory.