|
@@ -17,7 +17,7 @@ class Exception : public std::exception {
|
|
|
public:
|
|
public:
|
|
|
explicit Exception(std::string message) noexcept : err_message{std::move(message)} {}
|
|
explicit Exception(std::string message) noexcept : err_message{std::move(message)} {}
|
|
|
|
|
|
|
|
- const char* what() const noexcept override {
|
|
|
|
|
|
|
+ [[nodiscard]] const char* what() const noexcept override {
|
|
|
return err_message.c_str();
|
|
return err_message.c_str();
|
|
|
}
|
|
}
|
|
|
|
|
|