debug()  geterrtext()

Chapter 4: Production Objects and Methods

getAlterrtext()

Description

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.

Syntax

getAlterrtext(string *msg);

Parameter

Description

msg

Pointer to the string object to hold the alternate error message value set by the setErrText() method.

Return value

Integer.

Returns the alternate error number value set by the setErrNum() method.

Examples

Example 31

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. geterrtext()

View this book as PDF