| 35 | } |
| 36 | |
| 37 | UIDelegate::~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 | |
| 57 | UIDelegate::UIDelegate(managerApi::UIDelegateInterfacePtr uiDelegateInterface, |
| 58 | HostSessionPtr hostSession) |