![]() | Programming Guide | ![]() |
Initiates error processing for a transaction manager error code
#include <tmusubs.h>int sm_tm_command_errset(char *caller_id, int code);
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.
code- One of the transaction manager
DM_TM_ERR_XXXXreturn codes.
STATUSvalue of the current transaction.
sm_tm_command_errsetreports an error to the transaction manager error processor (sm_tm_error).codeis one of theDM_TM_ERR_XXXreturn codes returned from sm_tm_command. The error severity level is set toTM_ERROR. The error text generated corresponds to the error message for code.If the
TM_STATUSvalue of the current transaction is 0, this function setsTM_STATUSto -1. If bothTM_STATUSandTM_MSGvalues of the current transaction are 0, this function setsTM_MSGto the value ofcode.
![]()
![]()
![]()
![]()