![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <exception.hpp>
Public Member Functions | |
Exception () | |
template<typename... ArgsT> | |
Exception (std::string_view format_str, const ArgsT &... args) | |
Exception (const Exception &exception) | |
Exception (Exception &&exception) | |
virtual | ~Exception () |
Exception & | operator= (const Exception &exception) |
Exception & | operator= (Exception &&exception) |
virtual const char * | what () const noexcept override |
Private Attributes | |
char | m_text [s_buffer_size] |
Static Private Attributes | |
static constexpr std::size_t | s_buffer_size = 2048u |
A class of formatted exceptions.
mage::Exception::Exception | ( | ) |
Constructs a formatted exception.
|
explicit |
Constructs a formatted exception.
ArgsT | The format argument types. |
[in] | format_str | The format string. |
[in] | args | A reference to the format arguments. |
|
default |
Constructs a formatted exception from the given formatted exception.
[in] | exception | A reference to a formatted exception to copy. |
|
default |
Constructs a formatted exception by moving the given formatted exception.
[in] | exception | A reference to a formatted exception to move. |
|
virtualdefault |
Destructs this formatted exception.
Copies the given formatted exception to this formatted exception.
[in] | exception | A reference to a formatted exception to copy. |
Moves the given formatted exception to this formatted exception.
[in] | exception | A reference to a formatted exception to move. |
|
overridevirtualnoexcept |
Returns a null-terminated byte string that may be used to identify the exception.
|
private |
The text buffer of this formatted exception.
|
staticprivate |
The buffer size of exceptions.