Philipp Kraus
2012-12-20 18:46:06 UTC
Hello,
I'm working a short time with Lua and primary with the C API, so I would like to know something about the error handling.
Does there anything exists like exception in Lua? Eg the Lua script calls a C/C++ function, on there C++ function an error
occurs and the C++ function throws an exception, I can catch the exception but I don't stop the program, but I would send
the error to the running Lua script, so the script can catch the error and deal with them.
How can I handling errors on the Lua side?
Thanks
Phil
I'm working a short time with Lua and primary with the C API, so I would like to know something about the error handling.
Does there anything exists like exception in Lua? Eg the Lua script calls a C/C++ function, on there C++ function an error
occurs and the C++ function throws an exception, I can catch the exception but I don't stop the program, but I would send
the error to the running Lua script, so the script can catch the error and deal with them.
How can I handling errors on the Lua side?
Thanks
Phil