Release 4.0.0-preview1-00279
[platform/core/csapi/tizenfx.git] / src / Tizen.Applications.Common / Tizen.Applications / AppControl.cs
index fd4c79c..e591205 100755 (executable)
@@ -421,7 +421,7 @@ namespace Tizen.Applications
         /// <exception cref="InvalidOperationException">Thrown when failed because of an invalid parameter.</exception>
         /// <example>
         /// <code>
-        /// IEnumerable<string> applicationIds = AppControl.GetMatchedApplicationIds(control);
+        /// IEnumerable&lt;string&gt; applicationIds = AppControl.GetMatchedApplicationIds(control);
         /// if (applicationIds != null)
         /// {
         ///     foreach (string id in applicationIds)
@@ -501,7 +501,11 @@ namespace Tizen.Applications
         /// <param name="launchRequest">The AppControl.</param>
         /// <param name="replyAfterLaunching">The callback function to be called when the reply is delivered.</param>
         /// <exception cref="ArgumentException">Thrown when failed because of the argument is invalid.</exception>
-        /// <exception cref="InvalidOperationException">Thrown when failed because of an invalid operation.</exception>
+        /// <exception cref="Exceptions.AppNotFoundException">Thrown when the application to run is not found.</exception>
+        /// <exception cref="Exceptions.LaunchFailedException">Thrown when the request failed to launch the application.</exception>
+        /// <exception cref="Exceptions.LaunchRejectedException">Thrown when the launch request is rejected.</exception>
+        /// <exception cref="Exceptions.OutOfMemoryException">Thrown when the memory is insufficient.</exception>
+        /// <exception cref="Exceptions.PermissionDeniedException">Thrown when the permission is denied.</exception>
         /// <exception cref="TimeoutException">Thrown when failed because of timeout.</exception>
         /// <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
         /// <example>
@@ -559,8 +563,19 @@ namespace Tizen.Applications
                         throw new ArgumentException("Invalid Arguments");
                     case Interop.AppControl.ErrorCode.TimedOut:
                         throw new TimeoutException("Timed out");
+                    case Interop.AppControl.ErrorCode.OutOfMemory:
+                        throw new Exceptions.OutOfMemoryException("Out-of-memory");
+                    case Interop.AppControl.ErrorCode.AppNotFound:
+                        throw new Exceptions.AppNotFoundException("App not found");
+                    case Interop.AppControl.ErrorCode.LaunchRejected:
+                        throw new Exceptions.LaunchRejectedException("Launch rejected");
+                    case Interop.AppControl.ErrorCode.LaunchFailed:
+                        throw new Exceptions.LaunchFailedException("Launch failed");
+                    case Interop.AppControl.ErrorCode.PermissionDenied:
+                        throw new Exceptions.PermissionDeniedException("Permission denied");
+
                     default:
-                        throw new InvalidOperationException("Error = " + err);
+                        throw new Exceptions.LaunchRejectedException("Launch rejected");
                 }
             }
         }
@@ -717,7 +732,7 @@ namespace Tizen.Applications
             /// <example>
             /// <code>
             /// AppControl appControl = new AppControl();
-            /// string myValue = appControl.ExtraData.Get<string>("myKey");
+            /// string myValue = appControl.ExtraData.Get&lt;string&gt;("myKey");
             /// </code>
             /// </example>
             public T Get<T>(string key)
@@ -764,7 +779,7 @@ namespace Tizen.Applications
             /// <example>
             /// <code>
             /// AppControl appControl = new AppControl();
-            /// IEnumerable<string> keys = appControl.GetKeys();
+            /// IEnumerable&lt;string&gt; keys = appControl.GetKeys();
             /// if (keys != null)
             /// {
             ///     foreach (string key in keys)
@@ -847,7 +862,7 @@ namespace Tizen.Applications
             /// <example>
             /// <code>
             /// AppControl appControl = new AppControl();
-            /// IEnumerable<string> myValue = null;
+            /// IEnumerable&lt;string&gt; myValue = null;
             /// bool result = appControl.ExtraData.TryGet("myKey", out myValue);
             /// if (result)
             /// {