openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_ERR_AddErrStringBatch()

int32_t BSL_ERR_AddErrStringBatch ( const BSL_ERR_Desc descList,
uint32_t  num 
)

Add an error description string to an error code.

The error description string is added to the error code. The error description can be extended to the user side.

Attention
This function is thread-safe. It stores only string pointers and does not perform deep copy. The same error can be added multiple times and overwrites the previously added error.
Parameters
descList[IN] BSL_ERR_Desc array
num[IN] Length of descList
Return values
#BSL_SUCCESS.
Fordetails, see bsl_errno.h