Re: Trigger panic for testing custom error handler
[
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: 2013年1月22日 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.