From: William S F. <ws...@fu...> - 2006-11-03 23:40:00
|
Petr Novotny wrote: > Folks, > > I can use the %exception block to catch exceptions from the wrapped C++ function call. However, it doesn't catch exceptions from call setup (e.g., from the code in %typemap(in)). Is there a good universal way to catch those exceptions as well? > > I know I can use try/catch in the typemap. I know I can %ignore the original C++ function, %extend the class with a new function that uses primitive types on its interface and does the conversions internally, and use the service of %exception. > > But is there a more universal way? > Sorry, no. This is something I've often thought should be good to have, so ought to go into the feature requests. William |