Raven Engine v0.1
Loading...
Searching...
No Matches
ErrorHandling

Error handling system. More...

Classes

class  Raven::Expected< T >
 Template representing either a valid value or an error. More...

Enumerations

enum class  Raven::ErrorCode : u8 {
  Raven::ErrorCode::SUCCESS = 0 , Raven::ErrorCode::FILE_NOT_FOUND = 1 , Raven::ErrorCode::OUT_OF_MEMORY = 2 , Raven::ErrorCode::INVALID_INPUT = 3 ,
  Raven::ErrorCode::FATAL_ERROR = 4 , Raven::ErrorCode::OBJECT_MOVED = 5 , Raven::ErrorCode::OBJECT_NOT_FOUND = 6
}
 Symbolic status codes for Raven engine operations. More...

Detailed Description

Error handling system.

Enumeration Type Documentation

◆ ErrorCode

enum class Raven::ErrorCode : u8
strong

Symbolic status codes for Raven engine operations.

Provides a unified set of status codes that functions and subsystems can return to indicate success or various failure conditions. Facilitates clear, consistent error handling and propagation throughout the engine.

Enumerator
SUCCESS 

Operation completed successfully.

No error occurred; the requested operation was fully successful.

FILE_NOT_FOUND 

File was not found.

The requested file could not be located on disk or resource system.

OUT_OF_MEMORY 

Insufficient memory for allocation.

A memory allocation request failed due to lack of available memory.

INVALID_INPUT 

Invalid input parameters.

One or more input parameters to a function were outside of the valid range or violated preconditions.

FATAL_ERROR 

Unrecoverable engine error.

A fatal error occurred that cannot be gracefully handled. The engine performs shutdown and crash reporting.

OBJECT_MOVED 

Temporary state for moved object.

Used internally by Expected<T> during move construction to mark that the source object was relocated and should not be accessed further.

OBJECT_NOT_FOUND 

Object or resource not found.

A requested engine object or resource (e.g., entity, texture, shader) could not be located in the current context.