00001 #ifndef __FILENOTFOUNDEXCEPTION_H__ 00002 #define __FILENOTFOUNDEXCEPTION_H__ 00003 00004 #ifndef DOXYGEN_IGNORE_TAG 00005 00026 #endif 00027 00028 #include <string> 00029 00030 class FileNotFoundException : public std::exception 00031 { 00032 private: 00033 std::string message; 00035 public: 00036 FileNotFoundException(const std::string& fileName):message(std::string("File not found: '") + fileName + std::string("'")) {} 00037 virtual ~FileNotFoundException(void)throw() {} 00038 00039 virtual const char* what() const throw() 00040 { 00041 return message.c_str(); 00042 } 00043 }; 00044 00058 #endif