type mismatch in the return value from a python method call */
| 3213 | |
| 3214 | /* type mismatch in the return value from a python method call */ |
| 3215 | class DirectorTypeMismatchException : public Swig::DirectorException { |
| 3216 | public: |
| 3217 | DirectorTypeMismatchException(PyObject *error, const char* msg="") |
| 3218 | : Swig::DirectorException(error, "SWIG director type mismatch", msg) |
| 3219 | { |
| 3220 | } |
| 3221 | |
| 3222 | DirectorTypeMismatchException(const char* msg="") |
| 3223 | : Swig::DirectorException(PyExc_TypeError, "SWIG director type mismatch", msg) |
| 3224 | { |
| 3225 | } |
| 3226 | |
| 3227 | static void raise(PyObject *error, const char *msg) |
| 3228 | { |
| 3229 | throw DirectorTypeMismatchException(error, msg); |
| 3230 | } |
| 3231 | |
| 3232 | static void raise(const char *msg) |
| 3233 | { |
| 3234 | throw DirectorTypeMismatchException(msg); |
| 3235 | } |
| 3236 | }; |
| 3237 | |
| 3238 | /* any python exception that occurs during a director method call */ |
| 3239 | class DirectorMethodException : public Swig::DirectorException { |