Remove callback function exception handling (#193)
authormk5004lee <37102375+mk5004lee@users.noreply.github.com>
Thu, 29 Mar 2018 06:09:52 +0000 (15:09 +0900)
committersemun-lee <35090067+semun-lee@users.noreply.github.com>
Thu, 29 Mar 2018 06:09:52 +0000 (15:09 +0900)
- It is a temporary fix to avoid crashing.
  Will add new code for Result Reply.

Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
src/Tizen.Applications.Shortcut/Tizen.Applications.Shortcut/ShortcutManager.cs

index 1ceb5ec..63f7511 100755 (executable)
@@ -191,7 +191,7 @@ namespace Tizen.Applications.Shortcut
         {
             if (ret != (int)Interop.Shortcut.ErrorCode.None)
             {
-                throw ShortcutErrorFactory.GetException((Interop.Shortcut.ErrorCode)ret, "unable to add shortcut");
+                Log.Error(LogTag, "unable to add shortcut " + ret);
             }
 
             return 0;
@@ -201,7 +201,7 @@ namespace Tizen.Applications.Shortcut
         {
             if (ret != (int)Interop.Shortcut.ErrorCode.None)
             {
-                throw ShortcutErrorFactory.GetException((Interop.Shortcut.ErrorCode)ret, "unable to add widget");
+                Log.Error(LogTag, "unable to add widget " + ret);
             }
 
             return 0;
@@ -211,7 +211,7 @@ namespace Tizen.Applications.Shortcut
         {
             if (ret != (int)Interop.Shortcut.ErrorCode.None)
             {
-                throw ShortcutErrorFactory.GetException((Interop.Shortcut.ErrorCode)ret, "unable to delete shortcut");
+                Log.Error(LogTag, "unable to delete shortcut " + ret);
             }
 
             return 0;