Used in transaction production to retrieve the values set by the setErrNum() and setErrTxt() methods and place them into an integer and string data variable. You must use both setErrNum() and setErrTxt() for the getAlterrtext() method to function correctly.
getAlterrtext(string *msg);
Parameter |
Description |
---|---|
msg |
Pointer to the string object to hold the alternate error message value set by the setErrText() method. |
Integer.
Returns the alternate error number value set by the setErrNum() method.
int rv;
string my_msg;
rv = my_prod.getAlterrtext(my_msg);
erm( "Alt. error value - %d, alt. error text : [%s]", rv , my_msg);
where my_prod is the name of the production object.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |