Board  0.9.5
Exception.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
26 #ifndef BOARD_EXCEPTION_H
27 #define BOARD_EXCEPTION_H
28 
29 #include <stdexcept>
30 #include <string>
31 #include "BoardConfig.h"
32 
33 namespace LibBoard
34 {
35 
36 class Exception : public std::exception {
37 public:
38  Exception() noexcept;
39  Exception(const char * what) noexcept;
40  Exception(const std::string & what) noexcept;
41  Exception(const Exception &) = default;
42  ~Exception() noexcept;
43  const char * what() const noexcept;
44 
45 private:
46  std::string _what;
47 };
48 } // namespace LibBoard
49 
50 #endif // BOARD_EXCEPTION_H
LibBoard::Exception
Definition: Exception.h:36