|
Infinity Engine v0.6.20
C++ API Documentation
|
Exception type for errors that occur within ProceduralComponent operations. More...
#include <ComponentException.hpp>
Public Member Functions | |
| ComponentException (const std::string &message, const ProceduralComponent *component) | |
| Constructs a ComponentException with a message and component reference. | |
| const ProceduralComponent * | getComponent () const noexcept |
| Retrieves the component 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 ProceduralComponent * | _component |
| The component 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 ProceduralComponent operations.
ComponentException extends BaseException to provide context-specific error handling for procedural generation components. It stores a reference to the component that caused the exception, allowing developers to identify which component in a procedural system encountered an error during execution.
| Infinity::Procedural::ComponentException::ComponentException | ( | const std::string & | message, |
| const ProceduralComponent * | component | ||
| ) |
Constructs a ComponentException with a message and component reference.
| message | The error message describing what went wrong. |
| component | Pointer to the ProceduralComponent that caused the exception. |
|
noexcept |
Retrieves the component that caused the exception.
|
protected |
The component that caused the exception.