X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.Network.IoTConnectivity%2FTizen.Network.IoTConnectivity%2FResourceQuery.cs;h=0d24434d87a559b3c04d896dcff4e326c1711a89;hb=46cb5627612de0460205a84d1e2e4af140e58846;hp=00a5f46da2c9dd5579040ada16ebb4f0ae02b225;hpb=70f15cf92bf25331a329cbe33df78513286e522a;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceQuery.cs b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceQuery.cs index 00a5f46..0d24434 100755 --- a/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceQuery.cs +++ b/src/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/ResourceQuery.cs @@ -37,6 +37,9 @@ namespace Tizen.Network.IoTConnectivity /// /// /// + /// Thrown when the iotcon is not supported + /// Thrown when there is not enough memory + /// Thrown when there is an invalid parameter /// /// ResourceQuery query = new ResourceQuery(); /// @@ -84,6 +87,9 @@ namespace Tizen.Network.IoTConnectivity /// /// Gets and sets the resource type of the query /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// ResourceQuery query = new ResourceQuery(); /// query.Type = "org.tizen.light"; @@ -98,7 +104,7 @@ namespace Tizen.Network.IoTConnectivity if (ret != (int)IoTConnectivityError.None) { Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to get type"); - throw IoTConnectivityErrorFactory.GetException(ret); + return ""; } return Marshal.PtrToStringAnsi(type); } @@ -122,6 +128,9 @@ namespace Tizen.Network.IoTConnectivity /// /// Setter value could be a value such as /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// ResourceQuery query = new ResourceQuery(); /// query.Interface = ResourceInterfaces.LinkInterface; @@ -135,7 +144,7 @@ namespace Tizen.Network.IoTConnectivity if (ret != (int)IoTConnectivityError.None) { Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to get interface"); - throw IoTConnectivityErrorFactory.GetException(ret); + return ""; } return Marshal.PtrToStringAnsi(iface); } @@ -208,22 +217,6 @@ namespace Tizen.Network.IoTConnectivity } /// - /// Represents whether the collection is readonly - /// - /// - /// ResourceQuery query = new ResourceQuery(); - /// if (query.IsReadOnly) - /// Console.WriteLine("Read only query"); - /// - public bool IsReadOnly - { - get - { - return _query.IsReadOnly; - } - } - - /// /// Gets or sets the query data /// /// The query key to get or set. @@ -271,6 +264,9 @@ namespace Tizen.Network.IoTConnectivity /// The key of the query to insert /// The string data to insert into the query /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// ResourceQuery query = new ResourceQuery(); /// query.Add("key1", "value1"); @@ -300,6 +296,9 @@ namespace Tizen.Network.IoTConnectivity /// The id of the query to delete /// True if operation is successful. Otherwise, false /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// ResourceQuery query = new ResourceQuery(); /// query.Add("key1", "value1"); @@ -356,6 +355,9 @@ namespace Tizen.Network.IoTConnectivity /// /// Clears the Query collection /// + /// Thrown when the iotcon is not supported + /// Thrown when there is an invalid parameter + /// Thrown when the operation is invalid /// /// ResourceQuery query = new ResourceQuery(); /// query.Add("key1", "value1");