swig: use new gras/exception.i for common exception handling code