src/Exception.hpp
Namespaces
Name |
---|
Engine This namespace contains all of the necessary engine components. |
Classes
Name | |
---|---|
class | Engine::Exception |
Source code
#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:00 +0000