blob: 86816720b4cfa7e64a1145c6f478ed7b3bad3a89 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 | #include "cru/common/Exception.h"
namespace cru {
Exception::Exception() {}
Exception::Exception(String message) : message_(std::move(message)) {}
Exception::~Exception() {}
const char* Exception::what() const noexcept {
  if (!message_.empty() && utf8_message_.empty()) {
    utf8_message_ = message_.ToUtf8();
  }
  return utf8_message_.c_str();
}
}  // namespace cru
 |