Programming Guide



sm_tm_msg_count_error

Reports a transaction manager error

#include <tmusubs.h>
void sm_tm_msg_count_error(char *caller_id, int msg, int count);

caller_id
A string used for identification; in Panther transactions models, this is set to the module name followed by the function name where the event was triggered.

msg
Identifier for a predefined error message.

count
Any integer value useful for display in the message string.

Description

sm_tm_msg_count_error reports an ERROR severity error to the transaction manager error processor (sm_tm_error). The error text includes the name of the function where the error occurred identified by caller_id, the message text string corresponding to msg (obtained by a call to sm_msg_get), and the value identified in count. A typical use for count would be to display an error return code from the function that triggered the error event.

If msg is DM_TM_ALREADY or 0, this function does nothing.

See Also

sm_tm_error, sm_tm_msg_emsg, sm_tm_msg_error