* @exception E_INVALID_ARG The number of recipients is @c 0.
* @exception E_MAX_EXCEEDED The number of recipients has crossed the maximum limit (Maximum 20).
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The value of the flag, @c saveToSentbox, is fixed to @c false in the emulator.
* @see IEmailListener::OnEmailMessageSent()
*/
* @exception E_INVALID_ARG The number of recipients is @c 0 or the message is empty.
* @exception E_MAX_EXCEEDED The number of recipients has crossed the maximum limit (Maximum 10).
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks Some service providers may not support sending MMS messages with an empty subject or body. @n
* In this case, the result of the status report will be the E_FAILURE exception. @n
* The CC and BCC recipients in the @c recipientList are merged with the TO recipients when sending an MMS message.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
* @exception E_UNSUPPORTED_OPERATION The Emulator or target device does not support the required feature. @b Since: @b 2.1
* For more information, see <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks Before calling this method, check whether the feature is supported by %Tizen::System::SystemInfo::GetValue() methods.
* @see IPushManagerListener
* @see IPushEventListener
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @see IPushManagerListener::OnPushServiceRegistered()
*/
result RegisterPushService(RequestId& reqId);
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @see IPushManagerListener::OnPushServiceUnregistered()
*/
result UnregisterPushService(RequestId& reqId);
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method.
* If the user launches the application using a ticker or a quick panel,
* the push message related to the notification is delivered to the application
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @see IPushManagerListener::OnPushMessageSent()
*/
result SendPushMessage(const PushMessage& message, const Tizen::Base::String& registrationId, const Tizen::Base::String& appSecret, RequestId& reqId);
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The maximum limit can be checked by using GetMaxRecipientCount().
* @see IPushManagerListener::OnPushMessageSent()
*/
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_OBJ_ALREADY_EXIST The listener already exists.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @see ISmsMessageEventListener
* @see RemoveSmsMessageEventListener()
*/
* @exception E_OBJ_NOT_FOUND The listener is not found.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @see ISmsMessageEventListener
* @see AddSmsMessageEventListener()
*/
* @exception E_INVALID_ARG The number of recipients is @c 0.
* @exception E_MAX_EXCEEDED The number of recipients has crossed the maximum limit (Maximum 10).
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The CC and BCC recipients in the @c recipientList are ignored when sending an SMS message.
* @see ISmsListener::OnSmsMessageSent()
*/
* @exception E_INVALID_ARG The specified @c type is invalid.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks In case of an error, this method returns the negative value. For example, @c -1. @n
* The specific error code can be accessed using the GetLastResult() method.
*/
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method. @n
* The search with the specified keywords searches using only the first 50 characters of the body text. @n
* The SMS messages in the searched result contain only @c 160 bytes for the body text. @n
* @exception E_OUT_OF_MEMORY The memory is insufficient.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method. @n
* The search with the specified keywords searches using only the first 50 characters of the body text. @n
* The SMS messages in the searched result contain only @c 160 bytes for the body text. @n
* @exception E_OBJ_NOT_FOUND The SMS message with the specified @c messageId is not found.
* @exception E_SYSTEM A system error has occurred.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method. @n
* In case of an error, this method returns an empty string.
* @see SmsMessage::HasMoreText()
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION This operation is only allowed to the incoming message or the message from the Inbox.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method.
*/
Tizen::Base::String GetSenderAddress(void) const;
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION This operation is only allowed to the incoming message or the message from the Inbox.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method. @n
* In case of an error, this method returns the instance denoting 00:00:00, January 1, 1.
*/
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION This operation is allowed only when the message is from the Inbox, Sentbox, or Outbox.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks In case of an error, this method returns the negative value. For example, @c -1. @n
* The specific error code can be accessed using the GetLastResult() method.
*/
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION This operation is allowed only when the message is from the Sentbox or Outbox.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method. @n
* In case of an error, this method returns the instance denoting 00:00:00, January 1, 1.
*/
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION This operation is allowed only when the message is from the Inbox, Sentbox, or Outbox.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks In case of an error, this method returns the SMS_MESSAGE_BOX_TYPE_NONE value. @n
* The specific error code can be accessed using the GetLastResult() method.
*/
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION This operation is allowed only when the message is from the Sentbox or Outbox.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks The specific error code can be accessed using the GetLastResult() method.
*/
RecipientList GetRecipientList(void) const;
* @exception E_SUCCESS The method is successful.
* @exception E_INVALID_OPERATION This operation is allowed only when the message is from the Inbox, Sentbox, or Outbox.
* @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
+ * @exception E_USER_NOT_CONSENTED The user blocks an application from calling this method. @b Since: @b 2.1
* @remarks If the return value is @c true, the SMS message contains more than @c 160 bytes for the body text. @n
* To get the full body text, use SmsManager::GetFullText(). @n
* The specific error code can be accessed using the GetLastResult() method.
// checking privilege
r = _AccessController::CheckUserPrivilege(_PRV_MESSAGING_EMAIL, _PRV_MESSAGING_WRITE);
- SysTryReturn(NID_MSG, r == E_SUCCESS, E_PRIVILEGE_DENIED, r = E_PRIVILEGE_DENIED, "[E_PRIVILEGE_DENIED] Propagating.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_MSG, r == E_SUCCESS, r, "The application is not permitted to call this method.");
+
SysAssertf(__pImpl != null, "The EmailManager instance is not constructed yet.");
SysTryReturnResult(NID_MSG,
// checking privilege
r = _AccessController::CheckUserPrivilege(_PRV_MESSAGING_MMS, _PRV_MESSAGING_WRITE);
- SysTryReturn(NID_MSG, r == E_SUCCESS, E_PRIVILEGE_DENIED, r = E_PRIVILEGE_DENIED, "[E_PRIVILEGE_DENIED] Propagating.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_MSG, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pImpl != null, "The MmsManager instance is not constructed yet.");
SysTryReturnResult(NID_MSG,
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_PUSH);
- SysTryReturnResult(NID_MSG, 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_MSG, r == E_SUCCESS, r, "The application is not permitted to call this method.");
+
bool isPushSupported = false;
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_PUSH);
- SysTryReturnResult(NID_MSG, 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_MSG, r == E_SUCCESS, r, "The application is not permitted to call this method.");
+
SysAssertf(__pPushManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_PUSH);
- SysTryReturnResult(NID_MSG, 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_MSG, r == E_SUCCESS, r, "The application is not permitted to call this method.");
+
SysAssertf(__pPushManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
ClearLastResult();
r = _AccessController::CheckUserPrivilege(_PRV_PUSH);
- SysTryReturn(NID_MSG, r == E_SUCCESS, null, 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);
+ SysTryReturn(NID_MSG, r == E_SUCCESS, null, r, "The application is not permitted to call this method.");
SysAssertf(__pPushManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_PUSH);
- SysTryReturnResult(NID_MSG, 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_MSG, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pPushManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
result r = E_SUCCESS;
r = _AccessController::CheckUserPrivilege(_PRV_PUSH);
- SysTryReturnResult(NID_MSG, 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_MSG, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pPushManagerImpl != null, "Not yet constructed. Construct() should be called before use.");
// checking privilege
r = _AccessController::CheckUserPrivilege(_PRV_MESSAGING_SMS, _PRV_MESSAGING_READ);
- SysTryReturn(NID_MSG, r == E_SUCCESS, E_PRIVILEGE_DENIED, r = E_PRIVILEGE_DENIED, "[E_PRIVILEGE_DENIED] Propagated.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_MSG, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// checking conditions
SysAssertf(__pImpl != null, "The SmsManager instance is not constructed yet.");
// checking privilege
r = _AccessController::CheckUserPrivilege(_PRV_MESSAGING_SMS, _PRV_MESSAGING_READ);
- SysTryReturn(NID_MSG, r == E_SUCCESS, E_PRIVILEGE_DENIED, r = E_PRIVILEGE_DENIED, "[E_PRIVILEGE_DENIED] Propagated.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_MSG, r == E_SUCCESS, r, "The application is not permitted to call this method.");
// checking conditions
SysAssertf(__pImpl != null, "The SmsManager instance is not constructed yet.");
// checking privilege
r = _AccessController::CheckUserPrivilege(_PRV_MESSAGING_SMS, _PRV_MESSAGING_READ);
- if (r != E_SUCCESS)
- {
- SetLastResult(E_PRIVILEGE_DENIED);
- SysLogException(NID_MSG, GetLastResult(), "[E_PRIVILEGE_DENIED] Propagated.");
- return -1;
- }
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryReturn(NID_MSG, r == E_SUCCESS, -1, r, "The application is not permitted to call this method.");
// checking condition
SysAssertf(__pImpl != null, "The SmsManager instance is not constructed yet.");
// checking privilege
r = _AccessController::CheckUserPrivilege(_PRV_MESSAGING_SMS, _PRV_MESSAGING_READ);
- if (r != E_SUCCESS)
- {
- SetLastResult(E_PRIVILEGE_DENIED);
- SysLogException(NID_MSG, GetLastResult(), "[E_PRIVILEGE_DENIED] Propagated.");
-
- goto CATCH;
- }
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryCatch(NID_MSG, r == E_SUCCESS, ,r, "The application is not permitted to call this method.");
// checking condition
SysAssertf(__pImpl != null, "The SmsManager instance is not constructed yet.");
// checking privilege
r = _AccessController::CheckUserPrivilege(_PRV_MESSAGING_SMS, _PRV_MESSAGING_READ);
- if (r != E_SUCCESS)
- {
- SetLastResult(E_PRIVILEGE_DENIED);
- SysLogException(NID_MSG, GetLastResult(), "[E_PRIVILEGE_DENIED] Propagated.");
-
- goto CATCH;
- }
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryCatch(NID_MSG, r == E_SUCCESS, ,r, "The application is not permitted to call this method.");
// checking condition
SysAssertf(__pImpl != null, "The SmsManager instance is not constructed yet.");
// checking privilege
r = _AccessController::CheckUserPrivilege(_PRV_MESSAGING_SMS, _PRV_MESSAGING_READ);
- if (r != E_SUCCESS)
- {
- SetLastResult(E_PRIVILEGE_DENIED);
- SysLogException(NID_MSG, GetLastResult(), "[E_PRIVILEGE_DENIED] Propagated.");
- goto CATCH;
- }
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryCatch(NID_MSG, r == E_SUCCESS, , r, "The application is not permitted to call this method.");
// checking condition
SysAssertf(__pImpl != null, "The SmsManager instance is not constructed yet.");
// checking privilege
r = _AccessController::CheckUserPrivilege(_PRV_MESSAGING_SMS, _PRV_MESSAGING_WRITE);
- SysTryReturn(NID_MSG, r == E_SUCCESS, E_PRIVILEGE_DENIED, r = E_PRIVILEGE_DENIED, "[E_PRIVILEGE_DENIED] Propagated.");
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryReturnResult(NID_MSG, r == E_SUCCESS, r, "The application is not permitted to call this method.");
SysAssertf(__pImpl != null, "The SmsManager instance is not constructed yet.");
SysTryReturnResult(NID_MSG,
// checking privilege
r = _AccessController::CheckUserPrivilege(_PRV_MESSAGING_SMS, _PRV_MESSAGING_READ);
- if (r != E_SUCCESS)
- {
- SetLastResult(E_PRIVILEGE_DENIED);
- SysLogException(NID_MSG, GetLastResult(), "[E_PRIVILEGE_DENIED] Propagating.");
- return L"";
- }
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryReturn(NID_MSG, r == E_SUCCESS, L"", r, "The application is not permitted to call this method.");
if (__pImpl->__messageBoxType == SMS_MESSAGE_BOX_TYPE_SENTBOX || __pImpl->__messageBoxType == SMS_MESSAGE_BOX_TYPE_OUTBOX ||
__pImpl->__messageBoxType == SMS_MESSAGE_BOX_TYPE_ALL)
// checking privilege
r = _AccessController::CheckUserPrivilege(_PRV_MESSAGING_SMS, _PRV_MESSAGING_READ);
- if (r != E_SUCCESS)
- {
- SetLastResult(E_PRIVILEGE_DENIED);
- SysLogException(NID_MSG, GetLastResult(), "[E_PRIVILEGE_DENIED] Propagating.");
-
- dt.SetValue(1, 1, 1, 0, 0, 0);
- return dt;
- }
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryCatch(NID_MSG, r == E_SUCCESS, , r, "The application is not permitted to call this method.");
// argument check
if (__pImpl->__messageBoxType == SMS_MESSAGE_BOX_TYPE_SENTBOX || __pImpl->__messageBoxType == SMS_MESSAGE_BOX_TYPE_OUTBOX ||
}
return __pImpl->GetReceivedTime();
+
+CATCH:
+ dt.SetValue(1, 1, 1, 0, 0, 0);
+ return dt;
+
}
Tizen::Base::DateTime
// checking privilege
r = _AccessController::CheckUserPrivilege(_PRV_MESSAGING_SMS, _PRV_MESSAGING_READ);
- if (r != E_SUCCESS)
- {
- SetLastResult(E_PRIVILEGE_DENIED);
- SysLogException(NID_MSG, GetLastResult(), "[E_PRIVILEGE_DENIED] Propagating.");
-
- dt.SetValue(1, 1, 1, 0, 0, 0);
- return dt;
- }
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryCatch(NID_MSG, r == E_SUCCESS, , r, "The application is not permitted to call this method.");
// argument check
if (__pImpl->__messageBoxType == SMS_MESSAGE_BOX_TYPE_INBOX || __pImpl->__messageBoxType == SMS_MESSAGE_BOX_TYPE_NONE ||
}
return __pImpl->GetSentTime();
+
+
+CATCH:
+ dt.SetValue(1, 1, 1, 0, 0, 0);
+ return dt;
+
}
int
// checking privilege
r = _AccessController::CheckUserPrivilege(_PRV_MESSAGING_SMS, _PRV_MESSAGING_READ);
- if (r != E_SUCCESS)
- {
- SetLastResult(E_PRIVILEGE_DENIED);
- SysLogException(NID_MSG, GetLastResult(), "[E_PRIVILEGE_DENIED] Propagating.");
- return -1;
- }
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryReturn(NID_MSG, r == E_SUCCESS, -1, r, "The application is not permitted to call this method.");
+
// argument check
if (__pImpl->__messageBoxType == SMS_MESSAGE_BOX_TYPE_NONE || __pImpl->__messageBoxType == SMS_MESSAGE_BOX_TYPE_ALL)
// checking privilege
r = _AccessController::CheckUserPrivilege(_PRV_MESSAGING_SMS, _PRV_MESSAGING_READ);
- if (r != E_SUCCESS)
- {
- SetLastResult(E_PRIVILEGE_DENIED);
- SysLogException(NID_MSG, GetLastResult(), "[E_PRIVILEGE_DENIED] Propagating.");
- return SMS_MESSAGE_BOX_TYPE_NONE;
- }
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryReturn(NID_MSG, r == E_SUCCESS, SMS_MESSAGE_BOX_TYPE_NONE, r, "The application is not permitted to call this method.");
// argument check
if (__pImpl->__messageBoxType == SMS_MESSAGE_BOX_TYPE_ALL)
// checking privilege
r = _AccessController::CheckUserPrivilege(_PRV_MESSAGING_SMS, _PRV_MESSAGING_READ);
- if (r != E_SUCCESS)
- {
- SetLastResult(E_PRIVILEGE_DENIED);
- SysLogException(NID_MSG, GetLastResult(), "[E_PRIVILEGE_DENIED] Propagating.");
- return recipients;
- }
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryReturn(NID_MSG, r == E_SUCCESS, recipients, r, "The application is not permitted to call this method.");
// argument check
if (__pImpl->__messageBoxType == SMS_MESSAGE_BOX_TYPE_INBOX || __pImpl->__messageBoxType == SMS_MESSAGE_BOX_TYPE_NONE ||
// checking privilege
r = _AccessController::CheckUserPrivilege(_PRV_MESSAGING_SMS, _PRV_MESSAGING_READ);
- if (r != E_SUCCESS)
- {
- SetLastResult(E_PRIVILEGE_DENIED);
- SysLogException(NID_MSG, GetLastResult(), "[E_PRIVILEGE_DENIED] Propagating.");
- return false;
- }
+ r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_USER_NOT_CONSENTED);
+ SysTryReturn(NID_MSG, r == E_SUCCESS, false, r, "The application is not permitted to call this method.");
// argument check
if (__pImpl->__messageBoxType == SMS_MESSAGE_BOX_TYPE_NONE || __pImpl->__messageBoxType == SMS_MESSAGE_BOX_TYPE_ALL)