Open-source toolkit for radiation therapy research, an extension of 3D Slicer. Features include DICOM-RT import/export, dose volume histogram, dose accumulation, external beam planning (TPS), structure comparison and morphology, isodose line/surface generation, etc.
There are several ways to handle errors right now in the code:
Return with 0 on success, non-zero on error (Kevin's classes mostly)
Have an std::string argument for errorMessage. If it is not empty, then there is an error and it is displayed on the module GUI
Return with a bool success flag
It would be better to set a convention for this, e.g.:
Return bool success flags in every class, and have a string error message argument if it is needed to be displayed on the GUI.
There are several ways to handle errors right now in the code:
It would be better to set a convention for this, e.g.: Return bool success flags in every class, and have a string error message argument if it is needed to be displayed on the GUI.
Migrated from https://app.assembla.com/spaces/slicerrt/tickets/426-consolidate-error-handling-method-in-logic-classes/details