TIM SDK
TIM API C
native_error.h File Reference

Description

Native error.

Object type native_error.

Functions

ta_e_result_code_t ta_native_error_get_code (ta_object_t response, int *code)
 Error code. More...
 
ta_e_result_code_t ta_native_error_get_message (ta_object_t response, ta_object_t *message)
 Print information for merchant receipt. More...
 
ta_e_result_code_t ta_native_error_get_source (ta_object_t response, ta_object_t *source)
 Print information for merchant receipt. More...
 

Function Documentation

◆ ta_native_error_get_code()

ta_e_result_code_t ta_native_error_get_code ( ta_object_t  response,
int *  code 
)

Error code.

Parameters
[in]responseObject instance of type native_error.
[out]codePointer to variable to write value to.
Return values
ta_c_rc_okValue written to code.
ta_c_rc_invalid_argumentresponse is ta_object_invalid.
ta_c_rc_invalid_argumentresponse is not of type native_error.
ta_c_rc_invalid_argumentcode is null-pointer.

◆ ta_native_error_get_message()

ta_e_result_code_t ta_native_error_get_message ( ta_object_t  response,
ta_object_t message 
)

Print information for merchant receipt.

Parameters
[in]responseObject instance of type native_error.
[out]messagePointer to variable to write object instance to. Object instance is of type string and is not retained. Object instance is ta_object_invalid if value is not set in response.
Return values
ta_c_rc_okObject instance written to message.
ta_c_rc_invalid_argumentresponse is ta_object_invalid.
ta_c_rc_invalid_argumentresponse is not of type native_error.
ta_c_rc_invalid_argumentmessage is null-pointer.

◆ ta_native_error_get_source()

ta_e_result_code_t ta_native_error_get_source ( ta_object_t  response,
ta_object_t source 
)

Print information for merchant receipt.

Parameters
[in]responseObject instance of type native_error.
[out]sourcePointer to variable to write object instance to. Object instance is of type string and is not retained. Object instance is ta_object_invalid if value is not set in response.
Return values
ta_c_rc_okObject instance written to source.
ta_c_rc_invalid_argumentresponse is ta_object_invalid.
ta_c_rc_invalid_argumentresponse is not of type native_error.
ta_c_rc_invalid_argumentsource is null-pointer.