EventAnalysis  1.3.0
Exception.h
Go to the documentation of this file.
1 /*
2  * Exception.h
3  *
4  * Created on: 29 Aug 2019
5  * Author: mori
6  */
7 
8 #ifndef EXCEPTION_H_
9 #define EXCEPTION_H_
10 
11 #include <exception>
12 #include <string>
13 
14 namespace EA {
15 
24 class Exception : public std::exception {
25 public:
26 
31  Exception(std::string msg = "") : _what(std::move(msg)) {}
32 
37  const char *what() const noexcept override { return _what.c_str(); }
38 
39 private:
40  std::string _what;
41 };
42 
43 } // namespace EA
44 #endif /* EXCEPTION_H_ */
Exception(std::string msg="")
Definition: Exception.h:31
IncludeFileExc.h IncludeFileExc class declaration.
Definition: Algorithm.h:21
std::string _what
Definition: Exception.h:40
Definition: Exception.h:24
const char * what() const noexcept override
The error message.
Definition: Exception.h:37