Lua errors: Difference between revisions

From wikinotes
No edit summary
No edit summary
 
Line 1: Line 1:
lua errors are essentially untyped exceptions.<br>
lua errors are essentially untyped exceptions.<br>
they can be thrown and caught, and interrupt the execution of a program.
they can be thrown and caught, and interrupt the execution of a program.


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

Latest revision as of 20:59, 11 February 2024

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.