#include <SecurityExceptions.h>
#include <JSUtil.h>
-#include <JSWebAPIException.h>
#include <ArgumentValidator.h>
#include <GlobalContextManager.h>
#include <PlatformException.h>
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);
}
}