R-Type  1.0.1.0
Rewrite of the R-Type game with networking ability
Loading...
Searching...
No Matches
Core.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2023
3** Core.hpp
4** File description:
5** Core.hpp
6*/
7
8#ifndef URANUS_CORE_HPP
9#define URANUS_CORE_HPP
10
16#include <imgui-SFML.h>
17#include <imgui.h>
18#include <spdlog/spdlog.h>
19#include <array>
20#include <exception>
21#include <memory>
22#include <string>
23
27namespace uranus::ex {
31 class Exception : public std::exception {
32 public:
37 explicit Exception(const std::string &message) : _message(message) {}
38
43 const char *what() const noexcept override { return _message.c_str(); }
44
45 private:
46 std::string _message;
47 };
48} // namespace uranus::ex
49
50#endif // URANUS_CORE_HPP
The exception class.
Definition: Core.hpp:31
std::string _message
The message of the exception.
Definition: Core.hpp:46
const char * what() const noexcept override
Get the message of the exception.
Definition: Core.hpp:43
Exception(const std::string &message)
The constructor of the exception class.
Definition: Core.hpp:37
The uranus exception namespace.
Definition: Core.hpp:27