LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
validationException.h
Go to the documentation of this file.
1 #ifndef fhiclcpp_types_detail_validationException_h
2 #define fhiclcpp_types_detail_validationException_h
3 
4 #include "cetlib_except/exception.h"
5 
6 #include <exception>
7 #include <string>
8 
9 namespace fhicl {
10  namespace detail {
11 
13  public:
14  validationException(std::string msg) : msg_{std::move(msg)} {}
15  char const*
16  what() const noexcept override
17  {
18  return msg_.c_str();
19  }
20 
21  private:
22  std::string msg_;
23  };
24  }
25 }
26 
27 #endif /* fhiclcpp_types_detail_validationException_h */
28 
29 // Local variables:
30 // mode:c++
31 // End:
parameter set interface
char const * what() const noexcept override
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33