//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
DownloadManager*
DownloadManager::GetInstance(void)
{
- result r = E_SUCCESS;
static DownloadManager* pManager = null;
if (pManager == null)
SysAssertf(__pDownloadManagerImpl != null, "Not yet constructed. Construct() should be called before use.\n");
result r = _AccessController::CheckUserPrivilege(_PRV_DOWNLOAD);
- SysTryReturnResult(NID_CNT, r == E_SUCCESS, E_PRIVILEGE_DENIED,
- "The application does not have the privilege to call this method.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_CNT, r == E_SUCCESS, r,
+ "The application is not permitted to call this method.");
return __pDownloadManagerImpl->Start(request, reqId);
}