Module: gears.protected_call

Info:

  • Copyright: 2016 Uli Schlachter
  • Author: Uli Schlachter

Static module functions

gears.protected_call (func, ...) Call a function in protected mode and handle error-reporting.


Static module functions

gears.protected_call (func, ...)
Call a function in protected mode and handle error-reporting. If the function call succeeds, all results of the function are returned. Otherwise, an error message is printed and nothing is returned.

Parameters:

  • func function The function to call
  • ... Arguments to the function

Returns:

    The result of the given function, or nothing if an error occurred.
generated by LDoc 1.4.6 Last updated 2030-01-01 00:00:00