// 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>
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);