|
Infinity Engine v0.6.20
C++ API Documentation
|
Exception type for errors that occur within ProceduralSystem operations. More...
#include <SystemException.hpp>
Public Member Functions | |
| SystemException (const std::string &message, const ProceduralSystem *system) | |
| Constructs a SystemException with a message and system reference. | |
| const ProceduralSystem * | getSystem () const noexcept |
| Retrieves the system that caused the exception. | |
Public Member Functions inherited from Infinity::Engine::BaseException | |
| BaseException (const char *message) | |
| Constructs a BaseException with a C-string message. | |
| BaseException (const std::string &message) | |
| Constructs a BaseException with a std::string message. | |
| virtual const char * | what () const noexcept override |
| Returns the exception message. | |
Protected Attributes | |
| const ProceduralSystem * | _system |
| The system that caused the exception. | |
Protected Attributes inherited from Infinity::Engine::BaseException | |
| std::string | _message |
| The stored error message. | |
Exception type for errors that occur within ProceduralSystem operations.
SystemException extends BaseException to provide context-specific error handling for procedural generation systems. It stores a reference to the system that caused the exception, allowing developers to identify which procedural system encountered an error during execution or configuration.
| Infinity::Procedural::SystemException::SystemException | ( | const std::string & | message, |
| const ProceduralSystem * | system | ||
| ) |
Constructs a SystemException with a message and system reference.
| message | The error message describing what went wrong. |
| system | Pointer to the ProceduralSystem that caused the exception. |
|
noexcept |
Retrieves the system that caused the exception.
|
protected |
The system that caused the exception.