From 25cf8253ef4d2fd7c93f54298d2eccfdf95feb6e Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Tue, 7 Jul 2009 16:18:11 +0200 Subject: Use CABRTException instead of throwing std::string --- lib/CommLayer/CommLayerServerDBus.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/CommLayer/CommLayerServerDBus.cpp') diff --git a/lib/CommLayer/CommLayerServerDBus.cpp b/lib/CommLayer/CommLayerServerDBus.cpp index cffd012..139575b 100644 --- a/lib/CommLayer/CommLayerServerDBus.cpp +++ b/lib/CommLayer/CommLayerServerDBus.cpp @@ -1,5 +1,6 @@ #include "CommLayerServerDBus.h" #include +#include "ABRTException.h" DBus::Connection *CCommLayerServerDBus::init_dbus(CCommLayerServerDBus *self) { @@ -21,7 +22,7 @@ CCommLayerServerDBus::CCommLayerServerDBus() } catch(DBus::Error err) { - throw std::string("Error while requesting dbus name - have you reloaded the dbus settings?"); + throw CABRTException(EXCEP_FATAL, "CCommLayerServerDBus::CCommLayerServerDBus(): Error while requesting dbus name - have you reloaded the dbus settings?"); } } -- cgit