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 17025e6..5cce251 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 18df9b6..69adcc2 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 e1d8eb5..07a330a 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 01ec84a..579a634 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 4651983..bfba8aa 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 f5ea54a..c9f3497 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 d611b0c..2c739a2 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 47e9931..7b518bb 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 869580e..4e4d87b 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 69232a0..aa767b7 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 db407df..e0ed9d2 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 f90ed36..91fbb92 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 6a2d68e..132456e 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 67f2920..9e5a0d6 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 09c18f0..f236a4a 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 1a622d7..5ee28ad 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 e61b774..15195c6 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 52cb6e2..be44649 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 febf956..917f930 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 4aaff52..f08a80b 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 04c9788..73a83cd 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 cd495cf..ac09680 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 3df18ec..d04a104 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 a66e054..302efec 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 222dd14..a9bb8b4 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 cb28c7d..307a16b 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 a5624eb..c7134ae 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 f255070..0245e84 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 666e430..82db8db 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
+}