any python exception that occurs during a director method call */
| 3237 | |
| 3238 | /* any python exception that occurs during a director method call */ |
| 3239 | class DirectorMethodException : public Swig::DirectorException { |
| 3240 | public: |
| 3241 | DirectorMethodException(const char* msg = "") |
| 3242 | : DirectorException(PyExc_RuntimeError, "SWIG director method error.", msg) |
| 3243 | { |
| 3244 | } |
| 3245 | |
| 3246 | static void raise(const char *msg) |
| 3247 | { |
| 3248 | throw DirectorMethodException(msg); |
| 3249 | } |
| 3250 | }; |
| 3251 | |
| 3252 | /* attempt to call a pure virtual method via a director method */ |
| 3253 | class DirectorPureVirtualException : public Swig::DirectorException |