Lua errors

From wikinotes
Revision as of 20:59, 11 February 2024 by Will (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

lua errors are essentially untyped exceptions.
they can be thrown and caught, and interrupt the execution of a program.

Errors couple an embedded error object, with stack info.
lua itself returns errors with string error objects.
programs may bind any object as the error object.