Util--  1.1
exceptions.hh
Go to the documentation of this file.
1 #ifndef UTILMM_CONFIGFILE_EXCEPTIONS_HH
2 #define UTILMM_CONFIGFILE_EXCEPTIONS_HH
3 
4 #include <exception>
5 #include <string>
6 
7 namespace utilmm
8 {
9  struct not_found : public std::exception
10  {
11  std::string const file;
12 
13  not_found(std::string const& file_)
14  : file(file_) {}
15  ~not_found() throw() {}
16 
17  char const* what() const throw() { return file.c_str(); }
18  };
19 }
20 
21 #endif
22 
std::string const file
Definition: exceptions.hh:11
not_found(std::string const &file_)
Definition: exceptions.hh:13
Definition: exceptions.hh:9
~not_found()
Definition: exceptions.hh:15
Definition: auto_flag.hh:6
char const * what() const
Definition: exceptions.hh:17

Generated on Mon Sep 24 2018 17:06:40 for Util-- by doxygen 1.8.13
SourceForge.net Project Page