blob: 779c65d64a66e939b7de68f22804b81a8b619689 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "cru/common/Exception.hpp"
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
|