TIM SDK
TIM API C
|
|
Error messages.
Functions | |
ta_e_result_code_t | ta_error_message_get_terminal (ta_object_t *message, ta_e_result_code_t result_code, ta_object_t terminal) |
Get translation for error text matching terminal language. More... | |
ta_e_result_code_t | ta_error_message_get_language (ta_object_t *message, ta_e_result_code_t result_code, const char *language) |
Get translation for error text. More... | |
ta_e_result_code_t ta_error_message_get_language | ( | ta_object_t * | message, |
ta_e_result_code_t | result_code, | ||
const char * | language | ||
) |
Get translation for error text.
[out] | message | Pointer to variable to write object instance to. Object instance is of type string and is retained. |
[in] | result_code | Result code to get error message for. |
[in] | language | Language code to get error message for. If no entry for language is found the default error message is returned. Use null-pointer to get the default error message. |
ta_c_rc_ok | Object instance written to message. |
ta_c_rc_invalid_argument | message is null-pointer. |
ta_c_rc_invalid_argument | result_code is not a valid result code. |
ta_c_rc_out_of_memory | Failed allocating memory. |
ta_e_result_code_t ta_error_message_get_terminal | ( | ta_object_t * | message, |
ta_e_result_code_t | result_code, | ||
ta_object_t | terminal | ||
) |
Get translation for error text matching terminal language.
[out] | message | Pointer to variable to write object instance to. Object instance is of type string and is retained. |
[in] | result_code | Result code to get error message for. |
[in] | terminal | Terminal object to get language from. Object of type terminal. You have to call ta_terminal_system_information or ta_terminal_system_information_async first to obtain the terminal language. Otherwise the default language is used. |
ta_c_rc_ok | Object instance written to message. |
ta_c_rc_invalid_argument | message is null-pointer. |
ta_c_rc_invalid_argument | terminal is ta_object_invalid. |
ta_c_rc_invalid_argument | terminal is not of type terminal. |
ta_c_rc_invalid_argument | result_code is not a valid result code. |
ta_c_rc_out_of_memory | Failed allocating memory. |