|
matf-rg-engine
1.0.0
Base for project for the Computer Graphics course at Faculty of Mathematics, University of Belgrade
|
Defines Error, UserError, and EngineError classes, along with macros for error handling. More...
#include <source_location>#include <string>#include <utility>#include <format>

Go to the source code of this file.
Classes | |
| class | engine::util::Error |
| Base class for all errors. More... | |
| class | engine::util::EngineError |
| Represents an error that occurred in the engine. More... | |
| class | engine::util::UserError |
| Represents an error that occurred in the user's code. More... | |
Namespaces | |
| engine | |
| engine::util | |
Macros | |
| #define | RG_GUARANTEE(expr, msg, ...) |
| Guarantees that an expression is true. If it is not, an engine::util::EngineError is thrown. More... | |
| #define | RG_SHOULD_NOT_REACH_HERE(msg, ...) |
| Guarantees that a path should not be reached. If it is reached, an engine::util::EngineError is thrown. More... | |
| #define | RG_UNIMPLEMENTED(msg, ...) |
| Path is not implemented. If it is implemented, an engine::util::EngineError is thrown. More... | |
| #define | RG_ENGINE_ERROR(type, msg, ...) |
| Throws an engine::util::EngineError. More... | |
Defines Error, UserError, and EngineError classes, along with macros for error handling.
| #define RG_GUARANTEE | ( | expr, | |
| msg, | |||
| ... | |||
| ) |
Guarantees that an expression is true. If it is not, an engine::util::EngineError is thrown.
| expr | The expression to guarantee. |
| msg | The error message. |
| ... | The arguments to the error message. |
| #define RG_SHOULD_NOT_REACH_HERE | ( | msg, | |
| ... | |||
| ) |
Guarantees that a path should not be reached. If it is reached, an engine::util::EngineError is thrown.
| msg | The error message. |
| ... | The arguments to the error message. |
| #define RG_UNIMPLEMENTED | ( | msg, | |
| ... | |||
| ) |
Path is not implemented. If it is implemented, an engine::util::EngineError is thrown.
| msg | The error message. |
| ... | The arguments to the error message. |
| #define RG_ENGINE_ERROR | ( | type, | |
| msg, | |||
| ... | |||
| ) |
Throws an engine::util::EngineError.
| type | The type of the engine error. |
| msg | The error message. |
| ... | The arguments to the error message. |