MCPcopy Create free account
hub / github.com/OpenAssetIO/OpenAssetIO / ~UIDelegate

Method ~UIDelegate

src/openassetio-ui/src/ui/hostApi/UIDelegate.cpp:37–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37UIDelegate::~UIDelegate() {
38 try {
39 close();
40 } catch (const std::exception& exc) {
41 try {
42 hostSession_->logger()->error(
43 fmt::format("Exception closing UI delegate during destruction: {}", exc.what()));
44 } catch (...) { // NOLINT(*-empty-catch)
45 // Nothing we can do.
46 }
47 } catch (...) {
48 try {
49 hostSession_->logger()->error(
50 "Exception closing UI delegate during destruction: <unknown non-exception type thrown>");
51 } catch (...) { // NOLINT(*-empty-catch)
52 // Nothing we can do.
53 }
54 }
55}
56
57UIDelegate::UIDelegate(managerApi::UIDelegateInterfacePtr uiDelegateInterface,
58 HostSessionPtr hostSession)

Callers

nothing calls this directly

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected