[Tizen.Applications] Fix static analysis issues (#5389)
authorkilig <inkyun.kil@samsung.com>
Fri, 14 Jul 2023 04:46:09 +0000 (13:46 +0900)
committerGitHub <noreply@github.com>
Fri, 14 Jul 2023 04:46:09 +0000 (13:46 +0900)
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
src/Tizen.Applications.RemoteView/Tizen.Applications/RemoteView.cs
src/Tizen.Applications.WidgetControl/Tizen.Applications/WidgetControl.cs

index dab74177f95fb580dd5888c9ef55477d71f125c4..135473528d90723f408a9d1b695d4ab49013bd92 100755 (executable)
@@ -143,6 +143,12 @@ namespace Tizen.Applications
 
                 case Interop.WidgetViewerEvas.ErrorCode.MaxExceeded:
                     throw new InvalidOperationException("Max exceeded");
+
+                case Interop.WidgetViewerEvas.ErrorCode.Disabled:
+                    throw new InvalidOperationException("Disabled");
+
+                default:
+                    throw new InvalidOperationException("Invalid Operation");
             }
         }
 
index 843a53aa77b18a1476963520a119bee425db2bb8..0daff7dcef385246ccb01b3cfd0d37060ac27802 100755 (executable)
@@ -1011,6 +1011,9 @@ namespace Tizen.Applications
                         }
                     }
                     break;
+
+                default:
+                    break;
             }
             return 0;