Base exception class for all Infinity Engine exceptions.
More...
#include <BaseException.hpp>
|
| std::string | _message |
| | The stored error message.
|
| |
Base exception class for all Infinity Engine exceptions.
BaseException serves as the foundation for the Infinity Engine's exception hierarchy, extending std::exception to provide consistent error handling throughout the SDK. All custom exceptions in the Infinity Engine should inherit from this class to maintain a unified exception handling interface.
◆ BaseException() [1/2]
| Infinity::Engine::BaseException::BaseException |
( |
const char * |
message | ) |
|
|
explicit |
Constructs a BaseException with a C-string message.
- Parameters
-
| message | The error message describing the exception. |
◆ BaseException() [2/2]
| Infinity::Engine::BaseException::BaseException |
( |
const std::string & |
message | ) |
|
|
explicit |
Constructs a BaseException with a std::string message.
- Parameters
-
| message | The error message describing the exception. |
◆ what()
| virtual const char * Infinity::Engine::BaseException::what |
( |
| ) |
const |
|
overridevirtualnoexcept |
Returns the exception message.
- Returns
- A C-string containing the error message.
◆ _message
| std::string Infinity::Engine::BaseException::_message |
|
protected |
The stored error message.