Board 0.9.6
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
33namespace LibBoard
34{
35
36class Exception : public std::exception {
37public:
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
45private:
46 std::string _what;
47};
48} // namespace LibBoard
49
50#endif // BOARD_EXCEPTION_H
Definition Exception.h:36
~Exception() noexcept
Definition Exception.cpp:37
Exception() noexcept
Definition Exception.cpp:31
Exception(const Exception &)=default
const char * what() const noexcept
Definition Exception.cpp:39
Definition Board.h:55