Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-132567

Clarify/improve exception handling with QFuture

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.8.1
    • Core: Threads
    • None
    • All

    Description

      `QFuture` seems to struggle a bit with exceptions that do not derive from `QException` (documented, is this still necessary, technically?) and especially nested exceptions.

      I'm not aware how relevant the latter is, just at the moment `std::throw_with_nested` and `std::rethrow_if_nested` are not really usable due to the exception cloning I assume. Maybe this should be documented or fixed eventually, examples attached.

      Attachments

        1. test.cpp
          0.7 kB
        2. main.cpp
          0.8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cnn Qt Core & Network
            kamajii Sven Pauli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes