Lua Programming/How to Lua/error handling

Execution ErrorsEdit

When an execution error occurs in a lua script, execution returns to the caller programme for appropriate action to be taken.

Explicit error generationEdit

The error function can be used to generate an explicit error status.

Error trapEdit

The pcall function can be used as an error trap.

Last modified on 9 February 2011, at 02:32