| 60 | } |
| 61 | |
| 62 | void UI::NotifyException(std::wstring_view context) |
| 63 | { |
| 64 | try |
| 65 | { |
| 66 | throw; |
| 67 | } |
| 68 | catch (hresult_error const& hr) |
| 69 | { |
| 70 | NotifyUser(hr.message(), hstring{ L"Error occurred: " } + context); |
| 71 | } |
| 72 | catch (std::exception const& ex) |
| 73 | { |
| 74 | NotifyUser(ex.what(), hstring{ L"Unexpected exception: " } + context); |
| 75 | } |
| 76 | } |
| 77 | } |
nothing calls this directly
no outgoing calls
no test coverage detected