Update change log and spec for wrt-plugins-tizen_0.4.29
[framework/web/wrt-plugins-tizen.git] / src / Package / JSPackageInformation.cpp
index f6eccd2..421f8d8 100644 (file)
 // limitations under the License.
 //
 
-#include <JSWebAPIException.h>
 #include <CommonsJavaScript/Converter.h>
 #include <CommonsJavaScript/JSUtils.h>
 #include <CommonsJavaScript/Utils.h>
 #include <JSUtil.h>
+#include <JSWebAPIErrorFactory.h>
 #include "JSPackageInformation.h"
 #include "PackageInformation.h"
 #include <Logger.h>
@@ -148,10 +148,10 @@ JSValueRef JSPackageInformation::getProperty(JSContextRef context,
                        return JSUtil::toJSValueRef(context, privateData->m_appIds);
                }
        } catch (const BasePlatformException &err) {
-        return JSWebAPIException::throwException(context, exception, err);
+        return JSWebAPIErrorFactory::postException(context, exception, err);
     } catch (...) {
         DeviceAPI::Common::TypeMismatchException err("TypeMismatchException occured");
-        return JSWebAPIException::throwException(context, exception, err);
+        return JSWebAPIErrorFactory::postException(context, exception, err);
     }
        
        return JSValueMakeUndefined(context);