echelon  0.8.0
not_implemented_exception.hpp
1 // Copyright (c) 2012-2014 Christopher Hinz
2 //
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 #ifndef ECHELON_HDF5_NOT_IMPLEMENTED_EXCEPTION_HPP
7 #define ECHELON_HDF5_NOT_IMPLEMENTED_EXCEPTION_HPP
8 
9 #include <exception>
10 #include <string>
11 #include <utility>
12 
13 namespace echelon
14 {
15 namespace hdf5
16 {
17 class not_implemented_exception : public std::exception
18 {
19 public:
20  explicit not_implemented_exception(std::string what_) : what_{std::move(what_)}
21  {
22  }
23 
24  const char* what() const noexcept override
25  {
26  return what_.c_str();
27  }
28 
29 private:
30  std::string what_;
31 };
32 }
33 }
34 
35 #endif
echelon&#39;s core namespace
Definition: attribute.cpp:10