![]() |
Qt 6.x
The Qt SDK
|
#include <QtCore/qtconfigmacros.h>
#include <QtCore/qcompilerdetection.h>
#include <QtCore/qtcoreexports.h>
Go to the source code of this file.
Macros | |
#define | QT_TRY try |
#define | QT_CATCH(A) catch (A) |
#define | QT_THROW(A) throw A |
#define | QT_RETHROW throw |
#define | QT_TERMINATE_ON_EXCEPTION(expr) do { try { expr; } catch (...) { qTerminate(); } } while (false) |
Functions | |
QT_BEGIN_NAMESPACE Q_NORETURN Q_DECL_COLD_FUNCTION Q_CORE_EXPORT void | qTerminate () noexcept |
Definition at line 34 of file qexceptionhandling.h.
#define QT_RETHROW throw |
Definition at line 36 of file qexceptionhandling.h.
#define QT_TERMINATE_ON_EXCEPTION | ( | expr | ) | do { try { expr; } catch (...) { qTerminate(); } } while (false) |
Definition at line 40 of file qexceptionhandling.h.
Definition at line 35 of file qexceptionhandling.h.
#define QT_TRY try |
Definition at line 33 of file qexceptionhandling.h.
|
noexcept |
Definition at line 15 of file qexceptionhandling.cpp.
Referenced by QTest::setFailed().