See Also: ucError, Error Handling, ucRaiseError


Returns an error message.


ucErrorMessage([ErrorNumber [, tHandle]])




Optional.  When ErrorNumber is specified, the text of the corresponding error message is returned.  If this argument is omitted, or has a value of 0, then the error message associated with the most recent transaction is returned.  ErrorNumber can be either a value that you have configured, or one of the pre-defined error constants.



Optional.  Each thread has its own definitions, and keeps separate track of its errors.  By specifying this argument, you can select which thread to check for an error.  If no thread is specified, the default thread is implied.  If you are calling ucErrorMessage from a centralized error handling callback, then tHandle should generally not be omitted.



New or enhanced in version 3.0

·         Nothing related to this topic.

·         See What’s New.


Note: The wording for some error messages has changed.


New or enhanced in version 2.96


New or enhanced in version 2.9+


Issues for users migrating from version 2.0