csapi-sensor: update API spec about exceptions
authorkibak.yoon <kibak.yoon@samsung.com>
Fri, 21 Oct 2016 05:04:10 +0000 (14:04 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Fri, 21 Oct 2016 10:25:09 +0000 (19:25 +0900)
- Added the below Exceptions
  * NotSupportedException
  * UnauthorizedAccessException

Change-Id: I8319da08508dd663d365b2750a376dcf00001636
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
29 files changed:
Tizen.Sensor/Tizen.Sensor/Plugins/Accelerometer.cs
Tizen.Sensor/Tizen.Sensor/Plugins/FaceDownGestureDetector.cs
Tizen.Sensor/Tizen.Sensor/Plugins/GravitySensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/Gyroscope.cs
Tizen.Sensor/Tizen.Sensor/Plugins/GyroscopeRotationVectorSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/HeartRateMonitor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/HumiditySensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/InVehicleActivityDetector.cs
Tizen.Sensor/Tizen.Sensor/Plugins/LightSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/LinearAccelerationSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/Magnetometer.cs
Tizen.Sensor/Tizen.Sensor/Plugins/MagnetometerRotationVectorSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/OrientationSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/Pedometer.cs
Tizen.Sensor/Tizen.Sensor/Plugins/PickUpGestureDetector.cs
Tizen.Sensor/Tizen.Sensor/Plugins/PressureSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/ProximitySensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/RotationVectorSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/RunningActivityDetector.cs
Tizen.Sensor/Tizen.Sensor/Plugins/SleepMonitor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/StationaryActivityDetector.cs
Tizen.Sensor/Tizen.Sensor/Plugins/TemperatureSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/UltravioletSensor.cs
Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedGyroscope.cs
Tizen.Sensor/Tizen.Sensor/Plugins/UncalibratedMagnetometer.cs
Tizen.Sensor/Tizen.Sensor/Plugins/WalkingActivityDetector.cs
Tizen.Sensor/Tizen.Sensor/Plugins/WristUpGestureDetector.cs
Tizen.Sensor/Tizen.Sensor/Sensor.cs
Tizen.Sensor/Tizen.Sensor/SensorErrorFactory.cs

index 17025e64dac4dcd0eec09789cf4104837affc777..5cce25199c01dec2225607ed9b538c4c2010cd37 100644 (file)
@@ -12,7 +12,7 @@ namespace Tizen.Sensor
 {
     /// <summary>
     /// Accelerometer Sensor Class. Used for registering callbacks for accelerometer and getting accelerometer data
-    /// /// </summary>
+    /// </summary>
     public class Accelerometer : Sensor
     {
         private static string AccelerometerKey = "http://tizen.org/feature/sensor.accelerometer";
@@ -46,6 +46,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Returns the number of accelerometer sensors available on the device.
         /// </summary>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         public static int Count
         {
             get
@@ -58,6 +59,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.Accelerometer"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular accelerometer sensor in case of multiple sensors
         /// </param>
@@ -74,7 +78,6 @@ namespace Tizen.Sensor
         /// <summary>
         /// Event Handler for storing the callback functions for event corresponding to change in accelerometer sensor data.
         /// </summary>
-
         public event EventHandler<AccelerometerDataUpdatedEventArgs> DataUpdated;
 
         private static int GetCount()
index 18df9b6e8d337178f8dd83ff5a2548da9ed6750c..69adcc286ea306bdaf656ef5ca25d95fff5e100e 100644 (file)
@@ -49,6 +49,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.FaceDownGestureDetector"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular face down gesture detector in case of multiple sensors.
         /// </param>
index e1d8eb542382381948527c38d116099b931069b6..07a330ad8d2a269c73ffed0cfdea5068e1ba1858 100644 (file)
@@ -12,7 +12,7 @@ namespace Tizen.Sensor
 {
     /// <summary>
     /// GravitySensor Class. Used for registering callbacks for gravity sensor and getting gravity data
-    /// /// </summary>
+    /// </summary>
     public class GravitySensor : Sensor
     {
         private const string GravitySensorKey = "http://tizen.org/feature/sensor.gravity";
@@ -60,6 +60,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.GravitySensor"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular gravity sensor in case of multiple sensors
         /// </param>
index 01ec84a01e5fd70ef136b7c0e1b9779be2070af6..579a63411bdfe5ddd7b762bd2c9c96c06686316a 100644 (file)
@@ -12,7 +12,7 @@ namespace Tizen.Sensor
 {
     /// <summary>
     /// Gyroscope Sensor Class. Used for registering callbacks for gyroscope and getting gyroscope data
-    /// /// </summary>
+    /// </summary>
     public class Gyroscope : Sensor
     {
         private const string GyroscopeKey = "http://tizen.org/feature/sensor.gyroscope";
@@ -59,6 +59,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.Gyroscope"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular gyroscope sensor in case of multiple sensors
         /// </param>
index 46519835027f87c67ec04a952f288f060578b791..bfba8aa65cf14f907830d29f430c917e5f23717b 100644 (file)
@@ -12,7 +12,7 @@ namespace Tizen.Sensor
 {
     /// <summary>
     /// GyroscopeRotationVectorSensor Class. Used for registering callbacks for gyroscope rotation vector sensor and getting gyroscope rotation vector data
-    /// /// </summary>
+    /// </summary>
     public class GyroscopeRotationVectorSensor : Sensor
     {
         private const string GyroscopeRVKey = "http://tizen.org/feature/sensor.gyroscope_rotation_vector";
@@ -69,6 +69,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.GyroscopeRotationVectorSensor"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular gyroscope rotation vector sensor in case of multiple sensors
         /// </param>
index f5ea54ad2502499d778aaabda4b78299ff68e688..c9f3497d5cc3660062d445814b809cdb1767e407 100644 (file)
@@ -49,6 +49,13 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.HeartRateMonitor"/> class.
         /// </summary>
+        /// <remarks>
+        /// For accessing heart rate monitor, app should have http://tizen.org/privilege/healthinfo privilege.
+        /// </remarks>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="UnauthroizedAccessException">Thrown when the app has no privilege to use the sensor</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular heart rate monitor in case of multiple sensors
         /// </param>
index d611b0cee5068b88e81eb2fef0bf00376a6cf2e4..2c739a2e452fc61d605b39057532d46be953bc59 100644 (file)
@@ -49,6 +49,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.HumiditySensor"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular humidity sensor in case of multiple sensors
         /// </param>
index 47e9931ae84f0456b4e9d7fd1e30ebdc07164199..7b518bbdf51f33b47b2ad4a9f7beba9768bb3e40 100644 (file)
@@ -49,6 +49,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.InVehicleActivityDetector"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular in-vehicle activity detector in case of multiple sensors.
         /// </param>
index 869580e6a3359033f43c001c678797ea5766a66b..4e4d87b99bf9a7fd57cbf81f0b39bc590975e8e8 100644 (file)
@@ -49,6 +49,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.LightSensor"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular light sensor in case of multiple sensors
         /// </param>
index 69232a012cff96ef53ca4fbbb62db144ef759a83..aa767b7887fd40bbc6c64aba91cf584fb4d51a93 100644 (file)
@@ -60,6 +60,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.LinearAccelerationSensor"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular linear acceleration sensor in case of multiple sensors
         /// </param>
index db407dfc4b342d0a24c1975a7c91250e8ab1cb9a..e0ed9d21d7600eddf7b723f2494116813a4a1177 100644 (file)
@@ -60,6 +60,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.Magnetometer"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular magnetometer in case of multiple sensors
         /// </param>
index f90ed36ae3926af77bab079d26572d96e0504e34..91fbb928138e13d37be01a3c636f44a601d3cfa2 100644 (file)
@@ -70,6 +70,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.MagnetometerRotationVectorSensor"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular magnetometer rotation vector sensor in case of multiple sensors
         /// </param>
index 6a2d68e82ffb7dd66a7c8f679785479a8ab111ec..132456ed45da50b8c86049c3ca1af3c4060e2327 100644 (file)
@@ -60,6 +60,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.OrientationSensor"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular orientation sensor in case of multiple sensors
         /// </param>
index 67f292049768f433c7888366ba6d6cee9dcf7afa..9e5a0d68528b237889fa43d4697edbf1a22b4412 100644 (file)
@@ -84,6 +84,13 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.Pedometer"/> class.
         /// </summary>
+        /// <remarks>
+        /// For accessing pedometer, app should have http://tizen.org/privilege/healthinfo privilege.
+        /// </remarks>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="UnauthroizedAccessException">Thrown when the app has no privilege to use the sensor</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular pedometer sensor in case of multiple sensors
         /// </param>
index 09c18f0d208555c7f63a00618322cc0fa3b00d91..f236a4a9ed9a94a68bd18c838142677f2d3fdf17 100644 (file)
@@ -49,6 +49,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.PickUpGestureDetector"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular pick up gesture detector in case of multiple sensors.
         /// </param>
index 1a622d7441f67cbf4e902267319e9dcdb5628395..5ee28adb5ffe2a14f3b2c98c66e1ac47754b2f01 100644 (file)
@@ -49,6 +49,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.PressureSensor"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular pressure sensor in case of multiple sensors
         /// </param>
index e61b774ce50a729b72c8d4924ddc8db48fa3bb44..15195c6a737a4d98331cd5e37521ff12cab7cae5 100644 (file)
@@ -49,6 +49,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.ProximitySensor"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular proximity sensor in case of multiple sensors
         /// </param>
index 52cb6e2f267f6f54a1159a0538de98378d9d518e..be446496d5c8b3749881d8132ab835133982d9f9 100644 (file)
@@ -70,6 +70,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.RotationVectorSensor"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular rotation vector sensor in case of multiple sensors
         /// </param>
index febf95640917a15084ccf988de2a5c49353f6334..917f930a745322ea5932e19c90519b379b145a96 100644 (file)
@@ -49,6 +49,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.RunningActivityDetector"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular running activity detector in case of multiple sensors.
         /// </param>
index 4aaff52d6e77e16809380ad6a3f4dbb34528d081..f08a80b06d113a48bfab2aa210b43df80978d9fd 100644 (file)
@@ -49,6 +49,13 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.SleepMonitor"/> class.
         /// </summary>
+        /// <remarks>
+        /// For accessing sleep monitor, app should have http://tizen.org/privilege/healthinfo privilege.
+        /// </remarks>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="UnauthroizedAccessException">Thrown when the app has no privilege to use the sensor</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular sleep monitor in case of multiple sensors
         /// </param>
index 04c9788edde7dd551971da20982becd8aa9f1f39..73a83cd4f5795352d2c1a437c94d8a2b53c3475b 100644 (file)
@@ -49,6 +49,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.stationaryActivityDetector"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular stationary activity detector in case of multiple sensors.
         /// </param>
index cd495cfac4286f47b5bd54696e7d1de3452fd648..ac09680cecc5f24515ceff5b83f59f8b9f64285b 100644 (file)
@@ -49,6 +49,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.TemperatureSensor"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular temperature sensor in case of multiple sensors
         /// </param>
index 3df18ecca1bc58eb9a7f4a92168448f06dc3f035..d04a10493c3a4aa8fed04d8655e48626924793c5 100644 (file)
@@ -49,6 +49,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.UltravioletSensor"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular ultraviolet sensor in case of multiple sensors
         /// </param>
index a66e054c4a733e46d163f804d7f5c29c606baa49..302efec48de10ac2f697afd5a92c261b90de3c19 100644 (file)
@@ -74,6 +74,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.UncalibratedGyroscope"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular uncalibrated gyroscope sensor in case of multiple sensors
         /// </param>
index 222dd145fd13cfd4d1c204c727fd4a90560ae945..a9bb8b4a520dfb78d13e0499122528f243947ac9 100644 (file)
@@ -75,6 +75,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.UncalibratedMagnetometer"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular uncalibrated magnetometer sensor in case of multiple sensors
         /// </param>
index cb28c7db338c364ab3fda217c1f445848bc805cb..307a16bcaa3535d6ed09669107f9b98e8a9c1f40 100644 (file)
@@ -49,6 +49,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.walkingActivityDetector"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular walking activity detector in case of multiple sensors.
         /// </param>
index a5624eb30082f066e6f13418703c872aff188421..c7134aea491e2caf2b280d7b6a772ce6ab00118b 100644 (file)
@@ -49,6 +49,9 @@ namespace Tizen.Sensor
         /// <summary>
         /// Initializes a new instance of the <see cref="Tizen.Sensor.WristUpGestureDetector"/> class.
         /// </summary>
+        /// <exception cref="ArgumentException">Thrown when an invalid argument is used</exception>
+        /// <exception cref="NotSupportedException">Thrown when the sensor is not supported</exception>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         /// <param name='index'>
         /// Index. Default value for this is 0. Index refers to a particular wrist up gesture detector in case of multiple sensors.
         /// </param>
index f2550700a741eca3e221fa839de2672325a0637f..0245e84740fffbaf4390c58a3e9b72a0b79cd2a1 100644 (file)
@@ -158,6 +158,7 @@ namespace Tizen.Sensor
         /// Sets the interval of the sensor for sensor data event
         /// Callbacks will be called at frequency of this interval
         /// </summary>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         public uint Interval
         {
             set
@@ -176,6 +177,7 @@ namespace Tizen.Sensor
         /// <summary>
         /// Sets the max batch latency for the sensor corresponding to the sensor data event.
         /// </summary>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         public uint MaxBatchLatency
         {
             set
@@ -194,7 +196,8 @@ namespace Tizen.Sensor
         /// <summary>
         /// Sets the pause policy of the sensor.
         /// </summary>
-        /// <value>
+        /// <value>The pause policy</value>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         public SensorPausePolicy PausePolicy
         {
             set
@@ -274,6 +277,7 @@ namespace Tizen.Sensor
         /// Starts the sensor.
         /// After this the event handlers will start receiving events.
         /// </summary>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         public void Start()
         {
             Log.Info(Globals.LogTag, "Starting the sensor");
@@ -295,6 +299,7 @@ namespace Tizen.Sensor
         /// Stop the sensor.
         /// After this the event handlers will stop receiving the events
         /// </summary>
+        /// <exception cref="InvalidOperationException">Thrown when the operation is invalid for the current state</exception>
         public void Stop()
         {
             Log.Info(Globals.LogTag, "Stopping the sensor");
index 666e4304122f3f8804a89ff55b4b2738fdef8df1..82db8db938258f8709369e5740bade8b22bb678e 100644 (file)
@@ -37,9 +37,9 @@ namespace Tizen.Sensor
                 case SensorError.InvalidParameter:
                     return new ArgumentException("Invalid Parameter: " + msg);
                 case SensorError.NotSupported:
-                    return new InvalidOperationException("Not Supported: " + msg);
+                    return new NotSupportedException("Not Supported: " + msg);
                 case SensorError.PermissionDenied:
-                    return new InvalidOperationException("Permission Denied: " + msg);
+                    return new UnauthorizedAccessException("Permission Denied: " + msg);
                 case SensorError.OutOfMemory:
                     return new InvalidOperationException("Out of Memory: " + msg);
                 case SensorError.NotNeedCalibration:
@@ -51,4 +51,4 @@ namespace Tizen.Sensor
             }
         }
     }
-}
\ No newline at end of file
+}