Provides global error handling and user-friendly error messages for the application.
Displays error notifications and logs issues for debugging.
Methods
(inner) handleErrorAndRedirect(message) → {void}
Stores an error message in localStorage and redirects to the error page.
Parameters:
Name | Type | Description |
---|---|---|
message |
string | The error message to display on the error page. |
Returns:
- Type
- void
(inner) msg() → {void}
Retrieves and displays the stored error message from localStorage, if present.
Removes the message from storage after displaying.
Returns:
- Type
- void