summaryrefslogtreecommitdiff
path: root/src/Messaging/NetworkStatus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Messaging/NetworkStatus.cpp')
-rwxr-xr-xsrc/Messaging/NetworkStatus.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Messaging/NetworkStatus.cpp b/src/Messaging/NetworkStatus.cpp
index f99853a..ba187b4 100755
--- a/src/Messaging/NetworkStatus.cpp
+++ b/src/Messaging/NetworkStatus.cpp
@@ -15,7 +15,7 @@
// limitations under the License.
//
-#include <dpl/assert.h>
+#include <Logger.h>
#include <Commons/Exception.h>
#include "NetworkStatus.h"
@@ -29,7 +29,10 @@ namespace Messaging {
NetworkStatus::NetworkStatus(const DBus::MessagePtr& message)
{
- Assert(message->getInterface() == DBUS_INTERFACE_NETWORK_STATUS);
+ LoggerD("enter : " << message->getInterface());
+ if (message->getInterface() != DBUS_INTERFACE_NETWORK_STATUS) {
+ Throw(WrtDeviceApis::Commons::PlatformException);
+ }
initialize(message);
}