IARC-CSU / CanReg5

CanReg5 is a multi user, multi platform, open source tool to input, store, check and analyse cancer registry data.
http://www.iacr.com.fr/CanReg5
GNU General Public License v3.0
24 stars 13 forks source link

C221: Check every exception in the code and decide what should be done: just log, or display an alert or an error in the GUI #113

Closed infotel4iarc closed 2 years ago

infotel4iarc commented 2 years ago

Some exceptions are logged without giving any feedback to the user. For example, in RecordEditor#saveAllAction, if the save of the Patient or the Tumour or the Source fails, then an exception is only logged, but the error is not displayed in the GUI and the user is not aware that some data are not saved in the database: the user is going to leave the editor and will find out, or not, later that something went wrong. If the application alerts the user that something went wrong, in some cases, the user will be able to try again, or if the error persists, the user will be able to report the error to the support team.

fbinfotel commented 2 years ago

The branch is https://github.com/infotel4iarc/CanReg5/tree/feature/C221

Here are the point that were done :

This branch has been merged to the dev

fbinfotel commented 2 years ago

I have corrected some issue from this ticket directly on the dev dev branch