| 13 | } |
| 14 | |
| 15 | void 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 | |
| 33 | std::wstring Error::MessageFromIRestrictedErrorInfo(IRestrictedErrorInfo *info, HRESULT errCode) |
| 34 | { |
nothing calls this directly
no outgoing calls
no test coverage detected