Fix exception error regarding N_SE-33815
authorjisun10.lee <jisun10.lee@samsung.com>
Thu, 11 Apr 2013 08:37:34 +0000 (17:37 +0900)
committerjisun10.lee <jisun10.lee@samsung.com>
Thu, 11 Apr 2013 08:48:08 +0000 (17:48 +0900)
Change-Id: I37cf4688015e7cdc9a9c1f4ce674f3e80b1bf310
Signed-off-by: jisun10.lee <jisun10.lee@samsung.com>
src/ui/animations/FUiAnim_AnimationManager.cpp

index a7d76e5..5b0581b 100644 (file)
@@ -326,7 +326,7 @@ _AnimationManager::AddAnimation(VisualElement& target, const Tizen::Base::String
 
        if (pKeyName != null && pKeyName->IsEmpty() == false)
        {
-               SysTryReturnResult(NID_UI_ANIM, (DoesAnimationExist(target, *pKeyName) == false), E_INVALID_ARG, "Invalid argument(s) is used. Animation with keyName exists. key name = %ls", pKeyName->GetPointer());
+               SysTryReturnResult(NID_UI_ANIM, (DoesAnimationExist(target, *pKeyName) == false), E_OBJ_ALREADY_EXIST, "Animation with keyName already exists. key name = %ls", pKeyName->GetPointer());
        }
 
        result r = E_SUCCESS;
@@ -553,11 +553,11 @@ CATCH:
 int
 _AnimationManager::BeginGroupTransaction(VisualElement& target, const Tizen::Base::String* pKeyName, VisualElementAnimation& animation)
 {
-       SysTryReturn(NID_UI_ANIM, (CreateCurrentTransactionIfNeeded() == true), -1, E_SYSTEM, "A system error has been occurred. Current transaction is null.");
+       SysTryReturn(NID_UI_ANIM, (CreateCurrentTransactionIfNeeded() == true), -1, E_SYSTEM, "[E_SYSTEM] A system error has been occurred. Current transaction is null.");
 
        if (pKeyName != null && pKeyName->IsEmpty() == false)
        {
-               SysTryReturn(NID_UI_ANIM, (DoesAnimationExist(target, *pKeyName) == false), -1, E_INVALID_ARG, "[E_INVALID_ARG] Invalid argument(s) is used. Animation with keyName exists.");
+               SysTryReturn(NID_UI_ANIM, (DoesAnimationExist(target, *pKeyName) == false), -1, E_OBJ_ALREADY_EXIST, "[E_OBJ_ALREADY_EXIST] Animation with keyName already exists. key name = %ls", pKeyName->GetPointer());
        }
 
        _AnimationGroupNode* pNode = new (std::nothrow) _AnimationGroupNode(target, pKeyName, animation);