[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Trigger panic for testing custom error handler
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 22 Jan 2013 16:03:02 -0200
> Thanks. If I understand the concepts correctly, then I can use the panic handler to avoid the host application from exiting in cases where Lua is unrecoverable (as opposed to normal errors that might occur when executing a script, such as syntax errors)?
If you start all Lua transactions using lua_pcall then you can catch all errors.