// ******************************************************** // Header file HeapException.h // ******************************************************** #include using namespace std; class HeapException : public exception { string msg; public: HeapException(const string & message =""): msg(message) { } const char* what() { return msg.c_str(); } ~HeapException() throw() {} }; // end HeapException