Error notifications inform users that a particular action will not be performed and inform the user if they need to take any action in order to make it work.
Message boxes are the oldest way to present error messages to the user. Whenever there are any issues in the data entered by users, we can notify them by just popping the dialog box. This can be modal or modeless, depending on the area of the application the message is about. This can also have different icons, such as
X for error message and
! for information messages. We have seen them and used them, and if they appear we are not surprised.
UX designers tell us that we need to reduce the number of clicks to accomplish a use case by the user. These dialog messages require us to try to submit by clicking on the Submit button first. Then, we need to close these dialogs by clicking on another button. These clicks affect the usability of our applications causing irritations to the end user.