19class Exception :
public std::exception {
21 Exception() : message() {}
22 Exception(
const std::string &msg) : message(msg) {}
23 const char *what()
const throw() {
return this->getMessage().c_str(); }
24 ~Exception()
throw() {}
25 virtual const std::string &getMessage()
const {
return message; }
26 std::string copyMessage()
const {
return getMessage(); }
30 static void registerException();
33 static void translateException(Exception
const &e);
34 static PyObject *pyType;