Hi,
In message "rb_rescue2 - throwing exception in rescue_func"
on 04/08/26, Tobias Grimm <listaccount / e-tobi.net> writes:
|Is it simply not possible to "transform" a Ruby exception into a C++
|exception using rb_rescue2()? Will I have to rewrite SWIG to use rb_protect()?
Your sample code uses rb_rescue() that only catches StandardError.
If you want to catch all exceptions, specify rb_eException to the last
argument of rb_rescue2(). I have no knowledge about SWIG generated
code, but I hope this helps.
matz.