getErrorText()
Returns the text part of an error message string from the error class (e.g. "no authorisation").
Synopsis
string getErrorText(errClass err | dyn_errClass err);
Parameters
Parameter | Description |
---|---|
err | An error class variable or the return value of the function getLastError() or the function getLastException().
If the dyn_errClass parameter is used for the function, then the function returns the error text in the last element of the dyn_errClass parameter. |
Return Value
The text part of an error message string (e.g. "no authorisation")
Errors
Missing parameters.
Description
The getLastError() function returns a value that defines an error class consisting of several attributes.
The function getErrorText() returns the text part of an error message string from the error class (e.g. "no authorisation").
Example
main()
{
dyn_errClass err;
retErr;
err = getLastError();//get the error
if(dynlen(err) > 0)
{
retErr = makeError(err);//get the error text
DebugN(retErr);
}
else
{
DebugN("OK");// no error
}
}
Assignment
Availability
CTRL