Method ServiceController():getLastError() Foundation

Retrieves the number of the last error.

:getLastError() --> nError

This instance method returns the number of the last error. When no error occurred, the return value is 0.


When an error occurs, this method returns the error number of the operating system. Note that this method is executed by an instance of the ServiceController class. An instance is registered with :addController() and can be retrieved with :getUpdatedControl().


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.