HerdSoftware  0.1.1
Exception.h
Go to the documentation of this file.
1 /*
2  * Exception.h
3  *
4  * Created on: 9 Sep 2020
5  * Author: Nicola Mori
6  */
7 
8 #ifndef HERD_EXCEPTION_H_
9 #define HERD_EXCEPTION_H_
10 
11 #include <stdexcept>
12 #include <string>
13 
14 namespace Herd {
15 
24 class Exception : public std::exception {
25 public:
30  Exception(std::string msg = "") : _what(std::move(msg)) {}
31 
36  const char *what() const noexcept override { return _what.c_str(); }
37 
38 private:
39  std::string _what;
40 };
41 
42 } // namespace Herd
43 
44 #endif /* HERD_EXCEPTION_H_ */
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:24
Exception(std::string msg="")
Definition: Exception.h:30
std::string _what
Definition: Exception.h:39
const char * what() const noexcept override
The error message.
Definition: Exception.h:36
Definition: Exception.h:24