Fix Exception operation in Policy Client 48/144848/2 accepted/tizen/4.0/unified/20170829.015752 accepted/tizen/unified/20170821.051210 submit/tizen/20170818.072322 submit/tizen_4.0/20170828.100004 submit/tizen_4.0/20170828.110004
authorLee Sung Jun <sjun221.lee@samsung.com>
Fri, 18 Aug 2017 06:49:26 +0000 (15:49 +0900)
committerLee Sung Jun <sjun221.lee@samsung.com>
Fri, 18 Aug 2017 06:52:32 +0000 (15:52 +0900)
Change-Id: I006536e66f481f5c5bbb3bf0dbe4b236de200740
Signed-off-by: Lee Sung Jun <sjun221.lee@samsung.com>
libs/policy-client.h

index 3fa15a3..bb12623 100644 (file)
@@ -41,8 +41,11 @@ public:
        template<typename Type, typename... Args>
        Type methodCall(const std::string& method, Args&&... args)
        {
-               if (maintenanceMode) {
-                       return client->methodCall<Type, Args...>(method, std::forward<Args>(args)...);
+               try {
+                       if (maintenanceMode) {
+                               return client->methodCall<Type, Args...>(method, std::forward<Args>(args)...);
+                       }
+               } catch (...) {
                }
 
                errno = EPROTONOSUPPORT;