aboutsummaryrefslogtreecommitdiffstats
path: root/core/except.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-12-17 22:36:44 -0800
committerChris Robinson <[email protected]>2023-12-17 22:36:44 -0800
commit708a90ef8ef7ee00991556298073c50dfa6e72a1 (patch)
tree5d72e46977dc241febfcf6ad4ab2ffbe2fadf2c3 /core/except.h
parentbc83c874ff15b29fdab9b6c0bf40b268345b3026 (diff)
Fix some implicit conversions
Diffstat (limited to 'core/except.h')
-rw-r--r--core/except.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/except.h b/core/except.h
index eec876db..90e3346e 100644
--- a/core/except.h
+++ b/core/except.h
@@ -14,11 +14,12 @@ class base_exception : public std::exception {
protected:
base_exception() = default;
- ~base_exception() override;
auto setMessage(const char *msg, std::va_list args) -> void;
public:
+ ~base_exception() override;
+
[[nodiscard]] auto what() const noexcept -> const char* override { return mMessage.c_str(); }
};