[Common] Modify wrong descriptions of AppControl.SendLaunchRequest (#6038)
authorhjhun <36876573+hjhun@users.noreply.github.com>
Wed, 8 May 2024 09:28:34 +0000 (18:28 +0900)
committerGitHub <noreply@github.com>
Wed, 8 May 2024 09:28:34 +0000 (18:28 +0900)
The AppControl.SendLaunchRequest() can throw following exceptions:
 - Exceptions.AppNotFoundException
 - Exceptions.LaunchFailedException
 - Exceptions.LaunchRejectedException
 - Exceptions.OutOfMemoryException
 - Exceptions.PermissionDeniedException

The exceptions are added to the description of the method.
And, the InvalidOperationException is removed from
the AppControl.SendLaunchRequest().

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/Tizen.Applications.Common/Tizen.Applications/AppControl.cs

index 60c213f..ac9ac2c 100755 (executable)
@@ -574,7 +574,11 @@ namespace Tizen.Applications
         /// </remarks>
         /// <param name="launchRequest">The AppControl.</param>
         /// <exception cref="ArgumentNullException">Thrown when failed because of a null argument.</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>
@@ -604,7 +608,11 @@ namespace Tizen.Applications
         /// <param name="launchRequest">The AppControl.</param>
         /// <param name="timeout">The timeout in milliseconds, the timeout range is 5000 to 30000.</param>
         /// <exception cref="ArgumentNullException">Thrown when failed because of a null argument.</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>