From cb6dd9993260b35e4d9e755cc06c33b39a946eae Mon Sep 17 00:00:00 2001 From: Haesu Gwon Date: Tue, 7 Sep 2021 15:14:44 +0900 Subject: [PATCH] [ScreenMirroring] Fix exception bug (#3515) --- src/Tizen.Multimedia.Remoting/ScreenMirroring/ScreenMirroring.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Tizen.Multimedia.Remoting/ScreenMirroring/ScreenMirroring.cs b/src/Tizen.Multimedia.Remoting/ScreenMirroring/ScreenMirroring.cs index bcd619c..900f7e5 100644 --- a/src/Tizen.Multimedia.Remoting/ScreenMirroring/ScreenMirroring.cs +++ b/src/Tizen.Multimedia.Remoting/ScreenMirroring/ScreenMirroring.cs @@ -303,12 +303,9 @@ namespace Tizen.Multimedia.Remoting /// /// A task that represents the asynchronous operation. /// http://tizen.org/privilege/internet - /// - /// is a zero-length string, contains only white space.
- /// -or-
- /// is greater than port max value(65535). - ///
+ /// is a zero-length string, contains only white space. /// is null. + /// is greater than port max value(65535). /// /// The current state is not in the valid.
/// -or-
@@ -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); -- 2.7.4