Home
last modified time | relevance | path

Searched refs:OHEC_COMMON_PARAM_ERROR (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/base/usb/usb_manager/interfaces/kits/js/napi/src/
H A Dusb_info.cpp62 …env, valueType == napi_object, OHEC_COMMON_PARAM_ERROR, "The type of pipe must be USBDevicePipe."); in ParseUsbDevicePipe()
210 OHEC_COMMON_PARAM_ERROR, "The interface should have the endpoints property."); in ParseEndpointObj()
415 … env, valueType == napi_object, OHEC_COMMON_PARAM_ERROR, "The type of configs must be object."); in ParseConfigsObjs()
618 ThrowBusinessError(env, OHEC_COMMON_PARAM_ERROR, in DeviceCloseAccessory()
687 ThrowBusinessError(env, OHEC_COMMON_PARAM_ERROR, ""); in DeviceAddAccessoryRight()
689 ThrowBusinessError(env, OHEC_COMMON_PARAM_ERROR, in DeviceAddAccessoryRight()
991 …USB_ASSERT(env, type == napi_string, OHEC_COMMON_PARAM_ERROR, "The type of funcs must be string."); in CoreUsbFunctionsFromString()
1268 USB_ASSERT(env, (argc >= PARAM_COUNT_2), OHEC_COMMON_PARAM_ERROR, in PipeClaimInterface()
1509 ThrowBusinessError(env, OHEC_COMMON_PARAM_ERROR, "The type of pipe must be USBDevicePipe."); in GetControlTransferParam()
1666 ThrowBusinessError(env, OHEC_COMMON_PARAM_ERROR, "The type of pipe must be USBDevicePipe."); in GetUsbControlTransferParam()
[all …]
H A Dnapi_util.cpp65 …env, valueType == napi_string, OHEC_COMMON_PARAM_ERROR, "The type of " + fieldStr + " must be stri… in JsObjectToString()
105 …env, valueType == napi_boolean, OHEC_COMMON_PARAM_ERROR, "The type of " + fieldStr + " must be boo… in JsObjectToBool()
123 …env, valueType == napi_number, OHEC_COMMON_PARAM_ERROR, "The type of " + fieldStr + " must be numb… in JsObjectToInt()
156 …env, valueType == napi_number, OHEC_COMMON_PARAM_ERROR, "The type of " + fieldStr + " must be numb… in JsObjectToUint()
168 …USB_ASSERT_RETURN_FALSE(env, isTypedArray, OHEC_COMMON_PARAM_ERROR, "The type of buffer must be Ty… in JsUint8ArrayParse()
183 … env, type == napi_uint8_array, OHEC_COMMON_PARAM_ERROR, "The type of buffer must be Uint8Array."); in JsUint8ArrayParse()
185 … env, bufferSize != 0, OHEC_COMMON_PARAM_ERROR, "The size of buffer must be a positive number."); in JsUint8ArrayParse()
/ohos5.0/base/usb/usb_manager/utils/native/include/
H A Dusb_napi_errors.h28 OHEC_COMMON_PARAM_ERROR = 401, enumerator
47 …{OHEC_COMMON_PARAM_ERROR, "BusinessError 401:Parameter error." …