Make users aware of errors thanks to a generic popup
Use the Bus to connect a generic error message handler to any error message that goes through the bus.
Whenever this message handler receives an error message, it hides the previous screen and enqueues a popup with a custom message sent through the bus.
Blueprint information
- Status:
- Complete
- Approver:
- Florian Boucault
- Priority:
- Medium
- Drafter:
- Fernando Casanova
- Direction:
- Needs approval
- Assignee:
- Fernando Casanova
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- 1.0.9
- Started by
- Florian Boucault
- Completed by
- Olivier Tilloy
Related branches
Related bugs
Sprints
Whiteboard
Use cases:
We want to be able to dsplay an error message in a generic manner from different parts of the code (database, browser, player, etc...).
A short sum up of all the use cases would be (incomplete):
- Whenever a video is not playable, display a message explaining why
- Whenever we try to categorize 2 movies with the same name, display a message
- Whenever we try to download a plugin and get a timeout, display a message
- Whenever we get a timeout getting data from the internet (in a plugin), display a message (ex: themoviedb down)
- Whenever the video recategorisation display a message and tell the user where he can find the video.
examples of duplicated code:
elisa-plugins/
lines 1400 1427
Error messages exist, but they are not generic.
Ideally, the specific error messages (player-