Update change log and spec for wrt-plugins-tizen_0.4.29
[framework/web/wrt-plugins-tizen.git] / src / Bluetooth / JSBluetoothDevice.cpp
index 1bce7ca..e7da4d3 100644 (file)
@@ -18,7 +18,6 @@
 #include <SecurityExceptions.h>
 
 #include <JSUtil.h>
-#include <JSWebAPIException.h>
 #include <ArgumentValidator.h>
 #include <GlobalContextManager.h>
 #include <PlatformException.h>
@@ -195,10 +194,10 @@ JSValueRef JSBluetoothDevice::connectToServiceByUUID(JSContextRef context,
         
         return JSValueMakeUndefined(context);
     } catch (const BasePlatformException &err) {
-        return JSWebAPIException::throwException(context, exception, err);
+        return JSWebAPIErrorFactory::postException(context, exception, err);
     } catch (...) {
         DeviceAPI::Common::UnknownException err("Unknown Error in BluetoothDevice.connectToServiceByUUID().");
-        return JSWebAPIException::throwException(context, exception, err);
+        return JSWebAPIErrorFactory::postException(context, exception, err);
     }
 }