lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Am 11.12.2012 um 17:31 schrieb Luiz Henrique de Figueiredo:

>> I create the Lua pointer state, use a own lua_panic function for creating
>> my exception and load the script with luaL_loadstring. 
> 
> Panic functions are not meant for handling at this level. After a panic,
> a Lua state may be unusable. Use load+pcall for handling normal errors in
> Lua scripts.

Okay, but how can I handle runtime errors or user-defined errors?