assets_error.h
| File Path | engine/include/conjure/assets/assets_error.h |
| API ↗ | Assets |
Failure conditions of the asset pipeline.
Enumerations
assets_error
enum class assets_error : u16 {
NONE = 0,
NOT_FOUND, // unknown uuid, or the source of a record is gone
NO_IMPORTER, // no importer registered for the source's extension
NO_LOADER, // no loader registered for the blob's type
META_INVALID, // the .meta sidecar does not parse or lacks required fields
DUPLICATE_UUID, // two .meta files declare the same uuid
IO_ERROR, // the file system refused a read or write
IMPORT_FAILED, // the importer reported an error or produced invalid output
CACHE_MISS, // no cooked blob for the uuid at load time
CACHE_CORRUPT, // the cooked blob failed validation
LOAD_FAILED, // load_cpu failed
FINALISE_FAILED, // finalise failed
TYPE_MISMATCH, // bound type differs from the recorded or cooked type
TYPE_UNKNOWN, // the type id is not registered
TYPE_DUPLICATE, // register_type with an id that is taken
CYCLIC_DEPENDENCY, // the dependency graph contains a cycle through this asset
PACK_CORRUPT, // the pack header, TOC or content hash failed validation
UNBOUND, // the operation needs a bound slot
SHUTTING_DOWN, // the manager refuses new work after shutdown()
TIMEOUT, // load_blocking exceeded its timeout
COUNT
};
Failure conditions of the asset pipeline.
Macros
CONJURE_DECLARE_ERROR_CATEGORY
CONJURE_DECLARE_ERROR_CATEGORY(conjure::assets::assets_error, "assets", conjure::assets::assets_error_name)
Functions
Public
assets_error_name
assets_error_name[[nodiscard]] CONJURE_API std::string_view assets_error_name(
assets_error code) noexcept;Stable upper-case name of a code ("CACHE_MISS"); "" for values outside the enumeration.