Doxybook2 Example
 
Loading...
Searching...
No Matches
Exception.hpp
Go to the documentation of this file.
1#pragma once
2#include <exception>
3#include <string>
4
5namespace Engine {
9 class Exception: public std::exception {
10 public:
11 Exception() = default;
12
13 explicit Exception(std::string msg)
14 : msg(std::move(msg)) {
15
16 }
17
18 const char* what() const throw() override {
19 return msg.c_str();
20 }
21
22 private:
23 std::string msg;
24 };
25}
Exception(std::string msg)
Definition Exception.hpp:13
Exception()=default
const char * what() const override
Definition Exception.hpp:18
This namespace contains all of the necessary engine components.
Definition Asset.hpp:5