Mentions légales du service

Skip to content

Refactor caga wp42 remove try catch

Created by: cgcert

This PR aimed at handling exceptions in a simpler way in CAlgorithm and CSimulatedBox.

For CSimulatedBox, the idea was to move exceptions handling at scheduler level. As a side-effect, error management has been changed to be more constraining (it was very permissive) so that main methods break on first error. Moreover, in order to ensure resources are cleaned even when exceptions are raised, the initialized/uninitiliazed state within CPlayer and CScheduler has been removed. Instead, the code relies on both holding resoources or not. This allows both of them to clean their resources properly even when an exception/error occurs during initialization leaving the object in a partially initialized state.

Merge request reports