exceptions.hh
Go to the documentation of this file.
00001 #ifndef UTILMM_CONFIGFILE_EXCEPTIONS_HH
00002 #define UTILMM_CONFIGFILE_EXCEPTIONS_HH
00003 
00004 #include <exception>
00005 #include <string>
00006 
00007 namespace utilmm
00008 {
00009     struct not_found : public std::exception 
00010     {
00011         std::string const file;
00012 
00013         not_found(std::string const& file_)
00014             : file(file_) {}
00015         ~not_found() throw() {}
00016 
00017         char const* what() throw() { return file.c_str(); }
00018     };
00019 }
00020 
00021 #endif
00022 


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Thu Jan 2 2014 11:38:31