[System][Usb] apply NotSupportedException (#183)
authorlokilee73 <changjoo.lee@samsung.com>
Mon, 26 Mar 2018 04:51:08 +0000 (13:51 +0900)
committerhyotaekshim <35134695+hyotaekshim@users.noreply.github.com>
Mon, 26 Mar 2018 04:51:08 +0000 (04:51 +0000)
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
src/Tizen.System.Usb/Usb/UsbManager.cs

index 157a4c9..ce46663 100755 (executable)
@@ -51,7 +51,7 @@ namespace Tizen.System.Usb
         /// <since_tizen> 4 </since_tizen>
         public UsbManager()
         {
-            if (_context == null) throw new NotSupportedException("USB host operations are not supported in this device");
+            if (_context == null) Interop.ErrorCode.NotSupported.ThrowIfFailed("USB host operations are not supported in this device");
 
             IntPtr hotpluggedAttachHandle, hotpluggedDetachHandle;
             _context.SetHotplugCb(HostHotplugAttachCallback, Interop.HotplugEventType.Attach,