|
matf-rg-engine
1.0.0
Base for project for the Computer Graphics course at Faculty of Mathematics, University of Belgrade
|
Represents an error that occurred in the engine. More...
#include <Errors.hpp>


Public Types | |
| enum class | Type { Unimplemented , ShouldNotReachHere , GuaranteeViolation , FileNotFound , ConfigurationError , ShaderCompilationError , OpenGLError , AssetLoadingError , EngineErrorCount } |
| The type of the engine error. More... | |
Public Member Functions | |
| EngineError (Type error_type, std::string message, std::source_location location=std::source_location::current()) | |
| Construct an EngineError. More... | |
| std::string | report () const override |
| Get the error report. More... | |
Public Member Functions inherited from engine::util::Error | |
| Error (std::string message, std::source_location location=std::source_location::current()) | |
| Construct an Error. More... | |
| const std::string & | message () const |
| Get the error message. More... | |
| std::source_location | location () const |
| Get the location of the error. More... | |
Static Public Member Functions | |
| static std::string_view | type_string (Type error) |
| Get the string representation of the engine error type. More... | |
Private Attributes | |
| Type | m_error |
Represents an error that occurred in the engine.
|
strong |
The type of the engine error.
|
inline |
Construct an EngineError.
| error_type | The type of the engine error. |
| message | The error message. |
| location | The location of the error. This is used to get the file, line and function name where the error occurred. |
|
static |
Get the string representation of the engine error type.
| error | The engine error type. |
|
overridevirtual |
|
private |