EventAnalysis  1.0.0
IncludeFileExc.h
Go to the documentation of this file.
1 /*
2  * IncludeFileExc.h
3  *
4  * Created on: 23 Aug 2017
5  * Author: Nicola Mori
6  */
7 
10 #ifndef INCLUDEFILEEXC_H_
11 #define INCLUDEFILEEXC_H_
12 
13 #include <stdexcept>
14 #include <string>
15 
16 namespace EA {
17 
24 class IncludeFileExc : public std::exception {
25 public:
31  IncludeFileExc(std::string fileName) : _fileName(fileName) {}
36  const char *what() const noexcept { return _fileName.data(); }
37 
38 private:
39  std::string _fileName;
40 };
41 
42 } // namespace EA
43 
44 #endif /* INCLUDEFILEEXC_H_ */
Exception for including a configuration file.
Definition: IncludeFileExc.h:24
IncludeFileExc.h IncludeFileExc class declaration.
Definition: Algorithm.h:21
const char * what() const noexcept
Exception message.
Definition: IncludeFileExc.h:36
IncludeFileExc(std::string fileName)
Constructor.
Definition: IncludeFileExc.h:31
std::string _fileName
Definition: IncludeFileExc.h:39