Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
ResourceManagerError.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstring>
4#include <stdexcept>
5#include <string>
6
7namespace Object {
8
26class ResourceManagerError : public std::exception {
27 public:
28 explicit ResourceManagerError(const std::string &message) : msg("ResourceManager error: " + message) {};
29
30 const char *what() const throw() override { return this->msg.c_str(); };
31
32 private:
33 std::string msg;
34};
35
36} // namespace Object
std::string msg
Definition ResourceManagerError.hpp:33
const char * what() const override
Definition ResourceManagerError.hpp:30
ResourceManagerError(const std::string &message)
Definition ResourceManagerError.hpp:28
Definition AmbientLight.hpp:5