MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / HandleCriticalWithErrorInfo

Method HandleCriticalWithErrorInfo

ProgramLog/error/winrt.cpp:15–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15void Error::impl::HandleCriticalWithErrorInfo(std::wstring_view message, std::wstring_view error_message, std::source_location location, HRESULT err, IRestrictedErrorInfo* errInfo)
16{
17 HandleCriticalCommon(message, error_message, location);
18
19 if (errInfo)
20 {
21 if (const HRESULT hr = SetRestrictedErrorInfo(errInfo); SUCCEEDED(hr))
22 {
23 // This gives much better error reporting if the error came from a WinRT module:
24 // the stack trace in the dump, debugger and telemetry is unaffected by our error handling,
25 // giving us better insight into what went wrong.
26 RoFailFastWithErrorContext(err);
27 }
28 }
29
30 __fastfail(FAST_FAIL_FATAL_APP_EXIT);
31}
32
33std::wstring Error::MessageFromIRestrictedErrorInfo(IRestrictedErrorInfo *info, HRESULT errCode)
34{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected