From 56d3a795daf2aaec95e5b6811900a7aaa9ffc1ef Mon Sep 17 00:00:00 2001 From: "h.sandeep" Date: Fri, 12 May 2017 03:42:06 +0530 Subject: [PATCH] [C#][Bluetooth]: Change Exception handling for NotSupported Error This patch changes the NotSupported Error exception from InvlaidOperationException to NotSupportedException Change-Id: Ic2a16b5ee392523203354a5f31229a45b27243d2 Signed-off-by: h.sandeep --- src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothError.cs | 4 ++-- src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs | 0 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothError.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothError.cs index 76ab207..9f418e3 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothError.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothError.cs @@ -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"); diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs old mode 100755 new mode 100644 -- 2.7.4