better error messages, more comments, clean up for the next major modifications

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6284 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-02 01:43:17 +00:00
commit a4a7a2ff1f
25 changed files with 633 additions and 286 deletions

View file

@ -11,6 +11,10 @@
#include <string>
extern "C" {
struct swig_type_info;
}
namespace Swig {
/* base class for director exceptions */
class DirectorException {
@ -31,7 +35,7 @@ namespace Swig {
DirectorTypeMismatchException(const char* msg="") {
swig_msg = "Swig director type mismatch: ";
swig_msg += msg;
PyErr_SetString(PyExc_TypeError, msg);
PyErr_SetString(PyExc_TypeError, getMessage());
}
};