capi Service exception rectification

Signed-off-by: cff-gite <chenfeifei8@huawei.com>
This commit is contained in:
cff-gite 2024-05-18 12:06:44 +08:00
parent 615b2728c3
commit 46759ec8fe
2 changed files with 4 additions and 4 deletions

View File

@ -65,7 +65,7 @@ int32_t OH_Vibrator_PlayVibration(int32_t duration, Vibrator_Attribute attribute
* @param vibrateAttribute - Vibration attribute. For details, see {@link Vibrator_Attribute}.
* @return Returns <b>0</b> if the operation is successful; returns the following error code otherwise.
* {@link PERMISSION_DENIED} Permission verification failed.\n
* {@link PARAMETER_ERROR} Parameter check failed. For example, a mandatory parameter is not passed in,
* {@link PARAMETER_ERROR} Parameter check failed. For example, the parameter is invalid,
* or the parameter type passed in is incorrect.\n
* {@link UNSUPPORTED} The API is not supported on the device. The device supports the corresponding SysCap,
* but does not support certain APIs in this SysCap.\n

View File

@ -46,7 +46,7 @@ extern "C" {
* For details, see {@link Sensor_Info}.
* @param count - Pointer to the number of sensors on the device.
* @return Returns <b>SENSOR_SUCCESS</b> if the operation is successful; returns the following error code otherwise.
* {@link SENSOR_PARAMETER_ERROR} Parameter check failed. For example, a mandatory parameter is not passed in,
* {@link SENSOR_PARAMETER_ERROR} Parameter check failed. For example, the parameter is invalid,
* or the parameter type passed in is incorrect.\n
* {@link SENSOR_SERVICE_EXCEPTION} The sensor service is abnormal.\n
*
@ -69,7 +69,7 @@ Sensor_Result OH_Sensor_GetInfos(Sensor_Info **infos, uint32_t *count);
* reporting the sensor data. For details, see {@link Sensor_Subscriber}.
* @return Returns <b>SENSOR_SUCCESS</b> if the operation is successful; returns the following error code otherwise.
* {@link SENSOR_PERMISSION_DENIED} Permission verification failed.\n
* {@link SENSOR_PARAMETER_ERROR} Parameter check failed. For example, a mandatory parameter is not passed in,
* {@link SENSOR_PARAMETER_ERROR} Parameter check failed. For example, the parameter is invalid,
* or the parameter type passed in is incorrect.\n
* {@link SENSOR_SERVICE_EXCEPTION} The sensor service is abnormal.\n
* @permission ohos.permission.ACCELEROMETER or ohos.permission.GYROSCOPE or
@ -92,7 +92,7 @@ Sensor_Result OH_Sensor_Subscribe(const Sensor_SubscriptionId *id,
* reporting the sensor data. For details, see {@link Sensor_Subscriber}.
* @return Returns <b>SENSOR_SUCCESS</b> if the operation is successful; returns the following error code otherwise.
* {@link SENSOR_PERMISSION_DENIED} Permission verification failed.\n
* {@link SENSOR_PARAMETER_ERROR} Parameter check failed. For example, a mandatory parameter is not passed in,
* {@link SENSOR_PARAMETER_ERROR} Parameter check failed. For example, the parameter is invalid,
* or the parameter type passed in is incorrect.\n
* {@link SENSOR_SERVICE_EXCEPTION} The sensor service is abnormal.\n
* @permission ohos.permission.ACCELEROMETER or ohos.permission.GYROSCOPE or