File IError.hpp¶
File List > Engine > include > Errors > IError.hpp
Go to the documentation of this file
#ifndef ENGINE_ERRORS_IERROR_HPP_
#define ENGINE_ERRORS_IERROR_HPP_
#include <exception>
namespace Engine {
enum class error_severity_e { LOW, MODERATE, CRITICAL, FATAL };
class IError : public std::exception {
public:
~IError() override = default;
const char* what() const noexcept override = 0;
virtual error_severity_e GetSeverity() const noexcept = 0;
};
} // namespace Engine
#endif // ENGINE_ERRORS_IERROR_HPP_