// $Id$ // // File: nnann_exception.h // Created: Tue Mar 22 21:33:36 EDT 2011 // Creator: davidl (on Darwin Amelia.local 9.8.0 i386) // #ifndef _nnann_exception_ #define _nnann_exception_ #include #include class nnann_exception: public std::exception { public: nnann_exception():mess("Unknown Error"){} nnann_exception(std::string mess):mess(mess){} virtual ~nnann_exception() throw() {} virtual const char* what() const throw() { return mess.c_str(); } protected: std::string mess; }; #endif // _nnann_exception_