%module extern_throws %inline %{ #include extern int get() throw(std::exception); %} %{ int get() throw(std::exception) { return 0; } %}