Programming Guide |
Reports an error
#include <tmusubs.h>void sm_tm_msg_error(char *caller_id, int msg);
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
- Identifies an error message.
sm_tm_msg_error
reports anERROR
severity error to the transaction manager error processor. The error text includes the name of the function where the error occurred identified bycaller_id
and the message text string corresponding tomsg
, obtained by a call to sm_msg_get.If
msg
isDM_TM_ALREADY
or 0, this function does nothing.
sm_tm_error, sm_tm_msg_emsg, sm_tm_msg_count_error