Programming Guide |
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.
sm_tm_msg_count_error
reports anERROR
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 bycaller_id
, the message text string corresponding tomsg
(obtained by a call to sm_msg_get), and the value identified incount
. A typical use for count would be to display an error return code from the function that triggered the error event.If
msg
isDM_TM_ALREADY
or 0, this function does nothing.
sm_tm_error, sm_tm_msg_emsg, sm_tm_msg_error