[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: error handling
- From: Philipp Kraus <philipp.kraus@...>
- Date: Thu, 20 Dec 2012 19:46:06 +0100
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