src/Exception.hpp File Reference
Name |
---|
Engine This namespace contains all of the necessary engine components. |
Name | |
---|---|
class | Engine::Exception |
#pragma once
#include <exception>
#include <string>
namespace Engine {
class Exception: public std::exception {
public:
Exception() = default;
explicit Exception(std::string msg)
: msg(std::move(msg)) {
}
const char* what() const throw() override {
return msg.c_str();
}
private:
std::string msg;
};
}
Updated on 2022-10-19 at 22:22:02 +0000