aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/Exception.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/common/Exception.h')
-rw-r--r--include/cru/common/Exception.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cru/common/Exception.h b/include/cru/common/Exception.h
index 6f458d35..d7e32a5a 100644
--- a/include/cru/common/Exception.h
+++ b/include/cru/common/Exception.h
@@ -20,6 +20,9 @@ class CRU_BASE_API Exception : public std::exception {
const char* what() const noexcept override;
+ protected:
+ void SetMessage(String message) { message_ = std::move(message); }
+
private:
String message_;
mutable std::string utf8_message_;