
simSetLastError
Description
|
Sets a custom error message. This function is useful for plugins which wish to generate custom error messages that will be displayed in the calling script. Errors are set and memorized on a thread-basis (e.g. threads originating from threaded scripts have each an individual error handler). See also simGetLastError, the sim_intparam_error_report_mode and the error report modes. |
C synopsis
|
simInt simSetLastError(const simChar* funcName,const simChar* errorMessage)
|
C parameters |
funcName: name of the function where the error originated
errorMessage: error message
|
C return value
|
-1 if operation was not successful. In a future release, a more differentiated return value might be available
|
Lua synopsis
|
- |
Lua parameters |
-
|
Lua return values
|
-
|
All regular API functions on one page
|