Add test for Lua function invocation failure.
Add LuaError enum.
Raise error in Lua script.