Infinity Engine v0.6.20
C++ API Documentation
Loading...
Searching...
No Matches
ComponentException.hpp
1#pragma once
2
3#include <Infinity/Procedural/ProceduralComponent.hpp>
4#include <Infinity/Engine/BaseException.hpp>
5
7{
17 class INFINITY_API_PUBLIC ComponentException : public Infinity::Engine::BaseException
18 {
19 public:
26 ComponentException(const std::string& message, const ProceduralComponent* component);
27
33 const ProceduralComponent* getComponent() const noexcept;
34
35 protected:
36 const ProceduralComponent* _component;
37 };
38}
Base exception class for all Infinity Engine exceptions.
Definition BaseException.hpp:20
Exception type for errors that occur within ProceduralComponent operations.
Definition ComponentException.hpp:18
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.
Base class for procedural generation components.
Definition ProceduralComponent.hpp:73
Definition ComponentException.hpp:7