aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/Exception.hpp
blob: 861bf5e98b3819bd0c28588e833494bdb6227d68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#include "String.hpp"

namespace cru {
class CRU_BASE_API Exception {
 public:
  Exception() = default;
  Exception(String message) : message_(std::move(message)) {}

  CRU_DEFAULT_COPY(Exception)
  CRU_DEFAULT_MOVE(Exception)

  virtual ~Exception() = default;

 public:
  String GetMessage() const { return message_; }

 private:
  String message_;
};
}  // namespace cru