From 7c9ca9ac06e5b72ae8c6bcc334ad771c6613eaed Mon Sep 17 00:00:00 2001 From: Arian Rezazadeh Date: Tue, 26 Sep 2023 12:05:28 +0330 Subject: [PATCH] throw better exception when cannot open windows clipboard --- include/detail/windows.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/detail/windows.hpp b/include/detail/windows.hpp index 2fda73e..c2f7e3d 100644 --- a/include/detail/windows.hpp +++ b/include/detail/windows.hpp @@ -32,7 +32,7 @@ class ClipboardWindows : public ClipboardInterface { public: OpenCloseClipboardRaii() { if (!OpenClipboard(0)) - throw exception("Cannot open clipboard"); + throw WindowsException("Cannot open clipboard"); } ~OpenCloseClipboardRaii() { CloseClipboard(); }