5 #pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
9 %include <exception.i> // for throws(...) typemap
11 %catches(int, const char *, const ThreeException&) test_catches(int i);
12 %catches(int, ...) test_exception_specification(int i); // override the exception specification
13 %catches(...) test_catches_all(int i);
16 struct ThreeException {};
17 void test_catches(int i) {
21 throw (const char *)"two";
23 throw ThreeException();
26 void test_exception_specification(int i) throw(int, const char *, const ThreeException&) {
29 void test_catches_all(int i) {