00001
00002
00003
00004
00005
00006
00007 #ifndef IOEXCEPTION_H_
00008 #define IOEXCEPTION_H_
00009
00010 #include <ostream>
00011 #include <exception>
00012 #include <string>
00013
00014 namespace srchilite {
00015
00019 struct IOException : public std::exception {
00021 std::string message;
00022
00024 std::string filename;
00025
00026 IOException(const std::string &_message,
00027 const std::string &_filename);
00028 virtual ~IOException() throw() ;
00029
00030 virtual const char* what ( ) const throw ();
00031 };
00032
00033 std::ostream& operator<<(std::ostream& os, const IOException &entry);
00034
00035 }
00036
00037 #endif