X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd435a79ed2c79e20621fbe6b1013a86a9e05fed..7b162e540e98415f8ac6bc1fd5b880e143aa85e5:/include/wx/app.h?ds=inline diff --git a/include/wx/app.h b/include/wx/app.h index f172a41422..85ba83f552 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -117,6 +117,12 @@ public: virtual void OnFatalException() { } #if wxUSE_EXCEPTIONS + // function called if an uncaught exception is caught inside the main + // event loop: it may return true to continue running the event loop or + // false to stop it (in the latter case it may rethrow the exception as + // well) + virtual bool OnExceptionInMainLoop() { throw; } + // Called when an unhandled C++ exception occurs inside OnRun(): note that // the exception type is lost by now, so if you really want to handle the // exception you should override OnRun() and put a try/catch around