openMSX
MSXException.hh
Go to the documentation of this file.
1 #ifndef MSXEXCEPTION_HH
2 #define MSXEXCEPTION_HH
3 
4 #include "string_ref.hh"
5 
6 namespace openmsx {
7 
9 {
10 public:
11  explicit MSXException(string_ref message);
12  ~MSXException();
13 
14  const std::string& getMessage() const {
15  return message;
16  }
17 
18 private:
19  const std::string message;
20 };
21 
23 {
24 public:
25  explicit FatalError(string_ref message);
26  ~FatalError();
27 
28  const std::string& getMessage() const {
29  return message;
30  }
31 
32 private:
33  const std::string message;
34 };
35 
36 } // namespace openmsx
37 
38 #endif