docs

Error, Warning, and Info Messages

OpenUI5 provides a central place for storing and managing info, warning, and error messages.

Messages can be used to notify the user about specific states of the application and can help the user to correct their incorrect inputs. The central Messaging module can be required from sap/ui/core/Messaging, and the central MessageModel for managing messages is available by calling Messaging.getMessageModel().


Message Object Properties

The following properties of sap.ui.core.message.Message instances are important:


Message Creation

There are several ways to create messages automatically and push them into the central message model:

You can also create messages manually or extend the messaging features provided by the framework:

Related Information

API Reference: sap.ui.core.message.Message

API Reference: sap.ui.core.MessageType

API Reference: sap.ui.core.message.MessageManager

API Reference: sap.ui.model.message.MessageModel

API Reference: sap.ui.core.message.MessageParser

API Reference: sap.ui.core.message.MessageProcessor

API Reference: sap.ui.core.message.ControlMessageProcessor

API Reference: sap.ui.model.Model