Page MenuHomePhabricator

mitkException caught by itkProcess pipeline
Closed, WontfixPublic

Description

Throwing a mitk::Exception inside the itk processing pipeline (e.g. GenerateData() of an filter) results in catching of the exception in itkProcressObject as an itk::ExceptionObject. The mitkException is not passed furtheron, but is thrown as an itk::ExceptionObject, what results in catching of an unknown exception during application of the class (e.g. in an unit test).
The supposed reason for that is that the mitk:: Exception inherits from itk::ExceptionObject, since it is caught as an itk::Exception.
This unexpected catching of the exception makes the exception handling on the application side impossible. The inheritance from itk::ExceptionObject should hence be reconsidered.

Event Timeline

After discussion in the MITK meeting the behavior shall be maintained. In order to make the user aware od this issue, the documentation of the exception needs to be adapted accordingly.

I assigned the bug to Alfred, who did the documentation for the exception handling.

Removed RFD flag, documentation needs to be adapted.

kislinsk claimed this task.
kislinsk added a subscriber: kislinsk.
This task was automatically closed because it wasn't updated at least since July 2016 (over 2 years). Please re-open this task if you think that it is still relevant. This most probably means that you will resolve it.