TheAtlasEngine
 
Loading...
Searching...
No Matches
exceptions.hpp
1#pragma once
2#include <exception>
3
4namespace atlas {
6 const char* data = nullptr;
7 };
8
9 class invalid_access_exception : public std::exception {
10 public:
11 invalid_access_exception() = default;
12 invalid_access_exception(const char* p_data)
13 : m_block(p_data) {}
14
16 [[nodiscard]] const char* what() const noexcept override {
17 return m_block.data;
18 }
19
20 private:
21 exception_block m_block;
22 };
23};
Definition exceptions.hpp:9
const char * what() const noexcept override
Definition exceptions.hpp:16
Definition exceptions.hpp:5