Content style guide
Error messages mainly appear in interactive experiences such as tools, forms, and applications. This category of messaging has visual design and formatting that affects copy and thus you must:
The messages dictionary holds the title, content, component, and state for each scenario of message on the site. The messages dictionary is broken up into 4 types of messages:
Alerts the user of important system-related issues or status. It’s initiated by the system and it’s not a result of the user’s actions.
Nudges the user to enter or update data in the system. It can be initiated by either the system or another user.
Appears when the user tries to access an item that’s not available to them. It may be because the record has been deleted, the user doesn’t have access, etc.
The application’s response when the user is interacting with it. The majority of create, read, update, delete (CRUD) actions will result in feedback messaging.
Categories adapted from Salesforce Lightning Design System