[ScreenMirroring] Fix exception bug (#3515)
authorHaesu Gwon <haesu.gwon@samsung.com>
Tue, 7 Sep 2021 06:14:44 +0000 (15:14 +0900)
committerGitHub <noreply@github.com>
Tue, 7 Sep 2021 06:14:44 +0000 (15:14 +0900)
src/Tizen.Multimedia.Remoting/ScreenMirroring/ScreenMirroring.cs

index bcd619c..900f7e5 100644 (file)
@@ -303,12 +303,9 @@ namespace Tizen.Multimedia.Remoting
         /// </remarks>
         /// <returns>A task that represents the asynchronous operation.</returns>
         /// <privilege>http://tizen.org/privilege/internet</privilege>
-        /// <exception cref="ArgumentException">
-        ///     <paramref name="sourceIp"/> is a zero-length string, contains only white space.<br/>
-        ///     -or-<br/>
-        ///     <paramref name="port"/> is greater than port max value(65535).
-        /// </exception>
+        /// <exception cref="ArgumentException"><paramref name="sourceIp"/> is a zero-length string, contains only white space.</exception>
         /// <exception cref="ArgumentNullException"><paramref name="sourceIp"/> is null.</exception>
+        /// <exception cref="ArgumentOutOfRangeException"><paramref name="port"/> is greater than port max value(65535).</exception>
         /// <exception cref="InvalidOperationException">
         ///     The current state is not in the valid.<br/>
         ///     -or-<br/>
@@ -329,7 +326,7 @@ namespace Tizen.Multimedia.Remoting
             }
             if (port > _portMax)
             {
-                throw new ArgumentException($"{nameof(port)} is greater than max port value(65535).", nameof(port));
+                throw new ArgumentOutOfRangeException(nameof(port), $"{nameof(port)} is greater than max port value(65535).");
             }
 
             ValidateState(ScreenMirroringState.Prepared);