Re: error handling
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: error handling
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2012年12月21日 11:42:40 -0200
> > Or better yet, call lua_error in the first place (instead of throwing
> > a C++ exception). In Lua, you can catch such errors with 'pcall'.
>
>
> Can I catch this error on the Lua script? [...]
> > ................. In Lua, you can catch such errors with 'pcall'.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-- Roberto