From 9e9083cbedc0e98a03a0da370dd49375dc1cdc91 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 3 Sep 2024 07:31:15 +0200 Subject: Subclass exceptions from std::exception Make sure our exceptions are part of the standard exception class hierarchy. --- win/rfb_win32/MsgWindow.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win/rfb_win32/MsgWindow.cxx') diff --git a/win/rfb_win32/MsgWindow.cxx b/win/rfb_win32/MsgWindow.cxx index 25d8ee2c..a5770e67 100644 --- a/win/rfb_win32/MsgWindow.cxx +++ b/win/rfb_win32/MsgWindow.cxx @@ -61,7 +61,7 @@ LRESULT CALLBACK MsgWindowProc(HWND wnd, UINT msg, WPARAM wParam, LPARAM lParam) try { result = _this->processMessage(msg, wParam, lParam); - } catch (rdr::Exception& e) { + } catch (std::exception& e) { vlog.error("untrapped: %s", e.what()); } -- cgit v1.2.3