TutErrStrCreate add a new string to the error string table
err_num
the new error number
err_str
the descriptive name for the new error number
TRUE
if the string was successfully added, FALSE
otherwise.
If TutErrStrCreate fails, it returns a FALSE
value and the global SmartSockets error number is set to:
This function adds a new error number with a matching descriptive string to the error string table. Subsequent calls to TutErrNumToStr or TutErrStrGet are able to retrieve this error string.
All error numbers below 100000
are reserved for standard SmartSockets error numbers. TutErrStrCreate does not make a copy of err_str
.
This example creates a new error number:
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |