Eile Mit Weile
Loading...
Searching...
No Matches
EileMitWeileException.hpp
1#ifndef EILE_MIT_WEILE_EILEMITWEILEEXCEPTION_HPP
2#define EILE_MIT_WEILE_EILEMITWEILEEXCEPTION_HPP
3#include <string>
4#include <utility>
5
11class EileMitWeileException : public std::exception {
12 public:
13 explicit EileMitWeileException(std::string message) : msg(std::move(message)) { };
15 [[nodiscard]] const char* what() const noexcept override {
16 return msg.c_str();
17 }
18 private:
19 std::string msg;
20};
21
22#endif //EILE_MIT_WEILE_EILEMITWEILEEXCEPTION_HPP
wrapper for std::exception
Definition EileMitWeileException.hpp:11
std::string msg
Definition EileMitWeileException.hpp:19
const char * what() const noexcept override
Definition EileMitWeileException.hpp:15