ucErrorMessage
See Also: ucError, Error Handling, ucRaiseError
Returns an error message.
ucErrorMessage([ErrorNumber
[, tHandle]])
Parameters
ErrorNumber
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.
tHandle
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.
In C# or the class implementation of uCalc FMP for .NET, uCalcNET.uCalcNET.ucErrorMessage() should be used in error handling callbacks, whereas outside of error handling routines, the class member version of ucErrorMessage() should be used (for instance uc.ucErrorMessage() in the demo).
New or enhanced in version 2.96
New or enhanced in version 2.9+
Issues for users migrating from version 2.0