LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 <exception>
5 #include <string>
6 
7 namespace fhicl::detail {
9  public:
10  validationException(std::string msg) : msg_{std::move(msg)} {}
11  char const*
12  what() const noexcept override
13  {
14  return msg_.c_str();
15  }
16 
17  private:
18  std::string msg_;
19  };
20 }
21 
22 #endif /* fhiclcpp_types_detail_validationException_h */
23 
24 // Local variables:
25 // mode:c++
26 // End:
char const * what() const noexcept override
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33