CreatureLib/src/Core/Exceptions/CreatureException.hpp

19 lines
377 B
C++

#ifndef CREATURELIB_CREATUREEXCEPTION_HPP
#define CREATURELIB_CREATUREEXCEPTION_HPP
#include <exception>
#include <string>
class CreatureException : std::exception{
std::string _error;
public:
CreatureException(std::string error){}
const char *what() const noexcept override {
return _error.c_str();
}
};
#endif //CREATURELIB_CREATUREEXCEPTION_HPP