Ticket #191 (accepted defect)

Opened 10 years ago

Last modified 10 years ago

XuvTools should use exceptions to communicate errors back to invoking method

Reported by: emmenlau Owned by: emmenlau
Priority: critical Milestone: XuvTools-1.8.1-final
Component: xuvtools Version: 1.8.0-beta3
Keywords: exceptions, thread Cc: developers@…

Description (last modified by emmenlau) (diff)

Currently, XuvTools uses exceptions in very few places. This should be changed, in order to be able to catch common error cases in the GUI and handle them (or let the user save the project).

Example: the following issue terminates XuvTools without user feedback:

NOTE: fixedArrSqrSums < -10.0! This is a hard error, terminating the program. Please contact the developers.

Change History

Changed 10 years ago by emmenlau

  • keywords exceptions, thread added
  • status changed from new to accepted
  • summary changed from XuvTools should use exceptions to communicate errors back to invoker to XuvTools should use exceptions to communicate errors back to invoking method
  • description modified (diff)
  • milestone changed from XuvTools-1.8.0-final to XuvTools-1.8.1-final

It seems from a quick investigation, that throwing exceptions back to the GUI is not a straightforward task, since !libXuvStitch runs in a separate thread.

Rescheduling to XuvTools?-1.8.1-final, because this is not easily fixed.

Note: See TracTickets for help on using tickets.