//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
// Checks the privilege
r = _AccessController::CheckUserPrivilege(_PRV_DOWNLOAD);
- SysTryReturn(NID_CNT, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED,
- "[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.");
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
// Checks the privilege
r = _AccessController::CheckUserPrivilege(_PRV_DOWNLOAD);
- SysTryReturn(NID_CNT, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED,
- "[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.");
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_DOWNLOAD);
- SysTryReturn(NID_CNT, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED,
- "[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.");
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_DOWNLOAD);
- SysTryReturn(NID_CNT, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED,
- "[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.");
SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");