Skip to content
Prev 10748 / 10988 Next

[Rcpp-devel] RCPP_USE_UNWIND_PROTECT by default

If I tweak your example package code so that all exceptions are caught via
a catch (...) {} block, I can see something like:
Error in (function ()  : Ouch from R
Caught some other exception.

The fact that we're still printing the R error message seems undesirable,
but it looks like the exception can be caught -- just not via
std::exception.
On Sun, Feb 6, 2022 at 9:21 AM Kevin Ushey <kevinushey at gmail.com> wrote:

            
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20220206/18787f2a/attachment.html>