vexception.h

Go to the documentation of this file.
00001 #ifndef V_EXCEPTION_H
00002 #define V_EXCEPTION_H
00003 
00013 #include <exception>
00014 #include <string>
00015 
00016 
00020 class VMonitor_Exception : public std::exception {
00021   friend class LogCtrl;
00022 
00023   std::string error_message;
00024 
00025 public:
00031   VMonitor_Exception(const char* message) : error_message(message) {}
00032   virtual ~VMonitor_Exception(void) throw () {}
00033 
00037   virtual const char* what(void) const throw() {
00038     return error_message.c_str();
00039   }
00040 };
00041 
00042 #endif /* !V_EXCEPTION_H */
00043 

Generated on Mon Apr 13 22:52:03 2009 by  doxygen 1.5.7.1