benilla-re systems structs docs

s_textUsageSeterrorhandlerErrfunc

global · ui

Address
0x872a30 · 32 bytes, up to 0x872a4f
Type
char[32]
Meaning
Holds the string "Usage: seterrorhandler(errfunc)"
Confidence
verified, proof two
Finding
ui/luastate#error-handlers

Finding: Error handlers in ui: the Lua state, its library and C functions

A script error inside a handler is passed to the error handler 0x703b40: when a function has been set with seterrorhandler, it calls that function with the message and returns its result; otherwise the message is returned unchanged. seterrorhandler(f) raises Usage: seterrorhandler(errfunc) unless its first argument is a function, frees the old reference and keeps a reference to the top value; geterrorhandler() answers the function, or nil before one is set.

The derivation is in the doc.