Package com.smell.application.structure
Class ErrorNotificationManager
java.lang.Object
com.smell.application.structure.ErrorNotificationManager
A utility class to manage and display error notifications.
*
- Since:
- 24/04/24
- Version:
- ${version}
- Author:
- FlynnDynamics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddErrorMessage(String message) Adds an error message to the list of messages to be displayed.static voidDisplays all accumulated error messages as notifications and clears the list.
-
Constructor Details
-
ErrorNotificationManager
public ErrorNotificationManager()
-
-
Method Details
-
addErrorMessage
Adds an error message to the list of messages to be displayed.- Parameters:
message- The error message to add.
-
showAndClearMessages
public static void showAndClearMessages()Displays all accumulated error messages as notifications and clears the list.
-