lua
Lua Error Codes
Numeric status codes returned by the Lua C API from functions such as lua_pcall, lua_load, and luaL_loadfile. Integer constants defined in lua.h.
7 codes
references lua.org/manual/5.4/manual.html
· All codes 7 codes
- LUA_ERRERR Error in Error Handler An error occurred while running the message handler supplied to lua_pcall. Lua cannot call the handler again, so the original error object may be lost.
- LUA_ERRFILE File Error Returned by luaL_loadfile and luaL_loadfilex when the file cannot be opened or read. This code is specific to the auxiliary library and is not returned by lua_load.
- LUA_ERRMEM Memory Allocation Error Lua could not allocate memory for an operation. The allocator returned NULL. In this case Lua does not call the message handler, as allocation may also fail there.
- LUA_ERRRUN Runtime Error A runtime error occurred during execution, such as an attempt to call a nil value, an arithmetic error, or an explicit error() call in Lua code. The error message is on the top of the stack.
- LUA_ERRSYNTAX Syntax Error A syntax error was found during pre-compilation. Returned by lua_load and related functions. The error message describing the location and nature of the error is on the top of the stack.
- LUA_OK Success No error occurred. The call completed successfully.
- LUA_YIELD Thread Yielded The coroutine has suspended itself via coroutine.yield(). This is not an error but a status indicating the thread is paused and can be resumed with lua_resume.