Returns the current error handler function


See also Debugging and Profiling functions.

Signature:

handler = geterrorhandler()

Returns:

  • handler - The current error handler (function)

Examples:

local myError = "Something went horribly wrong!"
geterrorhandler()(myError)