Lua code can explicitly generate an error by calling the function. If you need to catch errors in Lua, you can use the function.