TheAtlasEngine
Loading...
Searching...
No Matches
exceptions.hpp
1
#pragma once
2
#include <exception>
3
4
namespace
atlas {
5
struct
exception_block
{
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
};
atlas::invalid_access_exception
Definition
exceptions.hpp:9
atlas::invalid_access_exception::what
const char * what() const noexcept override
Definition
exceptions.hpp:16
atlas::exception_block
Definition
exceptions.hpp:5
TheAtlasEngine
atlas
core
scene
exceptions.hpp
Generated by
1.9.8