[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Trigger panic for testing custom error handler
- From: Noah Watkins <jayhawk@...>
- Date: Tue, 22 Jan 2013 08:58:44 -0800
On Jan 22, 2013, at 8:51 AM, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> But note that panic functions are not meant to be generic error handlers
> for Lua, just a last-resort safety net for the app. In particular, the
> Lua state in a panic function is not usable.
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)?
-Noah