15 #include <QErrorMessage>    19 #endif  // MRPT_HAS_Qt5    20 #if MRPT_HAS_WXWIDGETS    25     const std::function<
void()>& tryPart, 
const std::string& catchMessage)
    31     catch (
const std::exception& e)
    45     msg.showMessage(QString::fromStdString(str));
    47 #elif MRPT_HAS_WXWIDGETS    48     wxMessageBox(str.c_str(), _(
"Exception"));
    50     std::cerr << str << std::endl;
    51 #endif  // MRPT_HAS_Qt5 
void showErrorMessage(const std::string &str)
 
void tryCatch(const std::function< void()> &tryPart, const std::string &catchMessage)