ecs_error.h
| File Path | engine/include/conjure/ecs/ecs_error.h |
| API ↗ | Entities, components and systems |
Failure conditions reported by the ecs module. Contract violations (a structural call while the world is locked, a call from the wrong thread) assert in Debug and Development and still return their code so Distribution builds stay defined.
Enumerations
ecs_error
enum class ecs_error : u16 {
NONE = 0,
ENTITY_NOT_ALIVE,
ENTITY_LIMIT_REACHED,
COMPONENT_ALREADY_PRESENT,
COMPONENT_NOT_PRESENT,
UNKNOWN_COMPONENT,
COMPONENT_LIMIT_REACHED,
COMPONENT_IN_USE,
COMPONENT_TOO_LARGE,
BAD_ALIGNMENT,
NAME_CONFLICT,
UNSUPPORTED_FIELD,
ARCHETYPE_TOO_LARGE,
STRUCTURE_LOCKED,
WRONG_THREAD,
OUT_OF_MEMORY,
ARCHIVE_CORRUPT,
SERIALIZATION_FAILED,
SYSTEM_CYCLE,
SYSTEM_NOT_FOUND,
COUNT
};
Failure conditions reported by the ecs module. Contract violations (a structural call while the world is locked, a call from the wrong thread) assert in Debug and Development and still return their code so Distribution builds stay defined.
Macros
CONJURE_DECLARE_ERROR_CATEGORY
Functions
Public
ecs_error_name
ecs_error_name[[nodiscard]] CONJURE_API std::string_view ecs_error_name(
ecs_error code) noexcept;The stable upper-case enumerator name of a code ("ENTITY_NOT_ALIVE"); "" for unknown values.