From: matz@... (Yukihiro Matsumoto) Date: 2004-08-26T09:28:00+09:00 Subject: Re: rb_rescue2 - throwing exception in rescue_func Hi, In message "rb_rescue2 - throwing exception in rescue_func" on 04/08/26, Tobias Grimm 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.