if (!__pWapPushReceiveEvent)
{
__pWapPushReceiveEvent = new (std::nothrow) _SmsEvent();
- SysTryCatch(NID_MSG, __pWapPushReceiveEvent != null, r = E_OUT_OF_MEMORY, r, "memory allocation failed.");
+ SysTryCatch(NID_MSG, __pWapPushReceiveEvent != null, r = E_OUT_OF_MEMORY, r, "[E_OUT_OF_MEMORY] memory allocation failed.");
// event construction
r = __pWapPushReceiveEvent->Construct(_SMS_EVENT_TYPE_WAP_PUSH_RECEIVE_RESULT);
- SysTryCatch(NID_MSG, r == E_SUCCESS, , r, "failed to construct push event");
+ SysTryCatch(NID_MSG, r == E_SUCCESS, , r, "[%s] failed to construct push event", GetErrorMessage(r));
}
// add listener
r = __pWapPushReceiveEvent->AddListener(listener, true);
- SysTryCatch(NID_MSG, r == E_SUCCESS, , r, "failed to add push listner.");
+ SysTryCatch(NID_MSG, r == E_SUCCESS, , r, "[%s] failed to add push listner.", GetErrorMessage(r));
SysTryReturnResult(NID_MSG, _MessagingProxy::GetInstance()!= null, E_OUT_OF_MEMORY, "Failed to get msg proxy instance");
r = _MessagingProxy::GetInstance()->AddWapPushEventListener(wapApplicationId, __pWapPushReceiveEvent);
+ SysTryCatch(NID_CNT, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
return r;
result r = E_SUCCESS;
ClearLastResult();
- SysTryCatch(NID_MSG, __pWapPushReceiveEvent != null, r = E_OBJ_NOT_FOUND, r, "listner not found");
+ SysTryCatch(NID_MSG, __pWapPushReceiveEvent != null, r = E_OBJ_NOT_FOUND, r, "[E_OBJ_NOT_FOUND] listner not found");
r = __pWapPushReceiveEvent->RemoveListener(listener);
- SysTryCatch(NID_MSG, r == E_SUCCESS, , r, "listner remove failed");
+ SysTryCatch(NID_MSG, r == E_SUCCESS, , r, "[%s] listner remove failed", GetErrorMessage(r));
delete __pWapPushReceiveEvent;
__pWapPushReceiveEvent = null;
result r = E_SUCCESS;
SysTryReturnResult(NID_MSG, _MessagingProxy::GetInstance()!= null, E_OUT_OF_MEMORY, "Failed to get msg proxy instance");
r = _MessagingProxy::GetInstance()->RegisterCondition(wapApplicationId,contentType);
+ SysTryCatch(NID_CNT, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
return r;
+
+CATCH:
+ return r;
}
result r = E_SUCCESS;
SysTryReturnResult(NID_MSG, _MessagingProxy::GetInstance()!= null, E_OUT_OF_MEMORY, "Failed to get msg proxy instance");
r = _MessagingProxy::GetInstance()->UnregisterCondition(wapApplicationId,contentType);
+ SysTryCatch(NID_CNT, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
return r;
+
+CATCH:
+ return r;
}