MCPcopy Create free account
hub / github.com/YtFlow/Maple / NotifyException

Method NotifyException

Maple.App/UI.cpp:62–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected