Doxybook2 Example
src
Exception.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <exception>
3
#include <string>
4
5
namespace
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
}
Engine::Exception::Exception
Exception(std::string msg)
Definition:
Exception.hpp:13
Engine::Exception
Definition:
Exception.hpp:9
Engine::Exception::Exception
Exception()=default
Engine
This namespace contains all of the necessary engine components.
Definition:
Asset.hpp:5
Engine::Exception::what
const char * what() const override
Definition:
Exception.hpp:18
Generated by
1.8.17