MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / reportErrorAndAllowRetry

Function reportErrorAndAllowRetry

Source/Falcor/Core/Error.cpp:93–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93bool reportErrorAndAllowRetry(std::string_view msg)
94{
95 logError(msg);
96
97 if (is_set(gErrorDiagnosticFlags, ErrorDiagnosticFlags::ShowMessageBoxOnError))
98 {
99 enum ButtonId
100 {
101 Retry,
102 Abort
103 };
104
105 // Setup message box buttons
106 std::vector<MsgBoxCustomButton> buttons;
107 buttons.push_back({Retry, "Retry"});
108 buttons.push_back({Abort, "Abort"});
109
110 // Show message box
111 auto result = msgBox("Error", std::string(msg), buttons, MsgBoxIcon::Error);
112 return result == Retry;
113 }
114
115 return false;
116}
117
118[[noreturn]] void reportFatalErrorAndTerminate(std::string_view msg)
119{

Callers 3

loadSceneMethod · 0.85
linkMethod · 0.85
getKernelsMethod · 0.85

Calls 4

logErrorFunction · 0.85
stringFunction · 0.85
msgBoxFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected