#include "InterpKernelException.hxx"
-#include <iostream>
-
INTERP_KERNEL::Exception::Exception(const char *reason):_reason(reason)
{
- std::cerr << "AN INTERP_KERNEL::EXCEPTION HAS BEEN THROWN : " << reason << "**********" << std::endl;
}
INTERP_KERNEL::Exception::Exception(const char *reason, const char *file, int line):_reason(reason)
Exception(const char* what);
~Exception() throw ();
const char *what() const throw ();
+ %extend
+ {
+ std::string __str__() const
+ {
+ return std::string(self->what());
+ }
+ }
};
}