From ba472f7a11a9917d2d58de87d40299f7ba18ebfd Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Wed, 17 Jul 2024 17:58:38 +0200 Subject: [PATCH] Exception::Throw --- libsrc/core/exception.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsrc/core/exception.hpp b/libsrc/core/exception.hpp index e9ef6c09..9bc2b0b9 100644 --- a/libsrc/core/exception.hpp +++ b/libsrc/core/exception.hpp @@ -36,6 +36,10 @@ namespace ngcore Exception(std::string_view s1, std::string_view s2, std::string_view s3); ~Exception() override = default; + [[noreturn]] static void Throw (std::string_view s1); + [[noreturn]] static void Throw (std::string_view s1, std::string_view s2); + [[noreturn]] static void Throw (std::string_view s1, std::string_view s2, std::string_view s3); + Exception& operator =(const Exception&) = default; Exception& operator =(Exception&&) noexcept = default;