aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/crepe/Exception.cpp2
-rw-r--r--src/crepe/Exception.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/Exception.cpp b/src/crepe/Exception.cpp
index dab8f2e..bfdbcdd 100644
--- a/src/crepe/Exception.cpp
+++ b/src/crepe/Exception.cpp
@@ -6,7 +6,7 @@
using namespace std;
using namespace crepe;
-const char * Exception::what() { return error.c_str(); }
+const char * Exception::what() const noexcept { return error.c_str(); }
Exception::Exception(const char * fmt, ...) {
va_list args;
diff --git a/src/crepe/Exception.h b/src/crepe/Exception.h
index 6473043..80af068 100644
--- a/src/crepe/Exception.h
+++ b/src/crepe/Exception.h
@@ -11,7 +11,7 @@ public:
//! printf
Exception(const char * fmt, ...);
//! Get formatted error message
- const char * what();
+ const char * what() const noexcept;
protected:
Exception() = default;