[C#][Bluetooth]: Change Exception handling for NotSupported Error
authorh.sandeep <h.sandeep@samsung.com>
Thu, 11 May 2017 22:12:06 +0000 (03:42 +0530)
committerh.sandeep <h.sandeep@samsung.com>
Thu, 20 Jul 2017 08:44:14 +0000 (14:14 +0530)
This patch changes the NotSupported Error exception from
InvlaidOperationException to NotSupportedException

Change-Id: Ic2a16b5ee392523203354a5f31229a45b27243d2
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothError.cs
src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs [changed mode: 0755->0644]

index 76ab207..9f418e3 100644 (file)
@@ -1,4 +1,4 @@
-/*
+/*
  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the License);
@@ -59,7 +59,7 @@ namespace Tizen.Network.Bluetooth
                 throw new InvalidOperationException("Operation not in progress");
 
             case BluetoothError.NotSupported:
-                throw new InvalidOperationException("Bluetooth is not supported");
+                throw new NotSupportedException("Bluetooth is not supported");
 
             case BluetoothError.OperationFailed:
                 throw new InvalidOperationException("Operation failed");