Update change log and spec for wrt-plugins-tizen_0.4.29
[framework/web/wrt-plugins-tizen.git] / src / Bluetooth / JSBluetoothClass.cpp
index e5d92a8..1debbcd 100644 (file)
@@ -18,7 +18,6 @@
 #include <SecurityExceptions.h>
 
 #include <JSUtil.h>
-#include <JSWebAPIException.h>
 #include <ArgumentValidator.h>
 #include <GlobalContextManager.h>
 #include <PlatformException.h>
@@ -163,10 +162,10 @@ JSValueRef JSBluetoothClass::hasService(JSContextRef context,
         
         return JSUtil::toJSValueRef(context, priv->mClass->hasService(service));
     } catch (const BasePlatformException &err) {
-        return JSWebAPIException::throwException(context, exception, err);
+        return JSWebAPIErrorFactory::postException(context, exception, err);
     } catch (...) {
         DeviceAPI::Common::UnknownException err("Unknown Error in BluetoothClass.hasService().");
-        return JSWebAPIException::throwException(context, exception, err);
+        return JSWebAPIErrorFactory::postException(context, exception, err);
     }
 }