1%include <typemaps/exception.swg> 2 3 4%insert("runtime") { 5 %define_as(SWIG_exception(code, msg), %block(%error(code, msg); SWIG_fail; )) 6} 7