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.h5
1 files changed, 5 insertions, 0 deletions
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 <optional>
+
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<StringView> additional_message);
+
private:
String message_;
mutable std::string utf8_message_;