From 0ec90627298b8b7bdc74a3993ca58f1dde14dc26 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 12 Oct 2023 17:47:30 +0800 Subject: ... --- include/cru/common/Exception.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/cru/common') diff --git a/include/cru/common/Exception.h b/include/cru/common/Exception.h index d7e32a5a..06a10030 100644 --- a/include/cru/common/Exception.h +++ b/include/cru/common/Exception.h @@ -1,6 +1,8 @@ #pragma once #include "String.h" +#include + namespace cru { #ifdef _MSC_VER #pragma warning(disable : 4275) @@ -23,6 +25,9 @@ class CRU_BASE_API Exception : public std::exception { protected: void SetMessage(String message) { message_ = std::move(message); } + void AppendMessage(StringView additional_message); + void AppendMessage(std::optional additional_message); + private: String message_; mutable std::string utf8_message_; -- cgit v1.2.3