arcade2d
Enum

ErrorCode

error.constants.ts:11

Stable string codes attached to every EngineError thrown by the engine. Codes are part of the public contract — user code is expected to branch on them when handling engine failures — so renumbering or removing a code is a breaking change.

Each value is prefixed with a short domain tag (COMP, PREFAB, DEP, GAME, ASSET, RAND, GFX) followed by a zero-padded sequence number, so codes sort by domain and the wire format is stable across catalog growth.

Enumeration Members

#
ANIMATED_SPRITE_EMPTY_FRAMES
#
ASSET_KEY_CONFLICT
#
ASSET_LOAD_FAILED
#
ASSET_NOT_FOUND
#
ASSET_TYPE_MISMATCH
#
AUDIO_NO_SOURCE
#
AUDIO_UNAVAILABLE
#
COMPONENT_ALREADY_EXISTS
#
COMPONENT_AMBIGUOUS_TYPE
#
COMPONENT_NOT_FOUND
#
GAME_WORLD_ALREADY_EXISTS
#
GAME_WORLD_NOT_FOUND
#
PREFAB_ALREADY_REGISTERED
#
PREFAB_BUILD_UNAUTHORIZED
#
PREFAB_INVALID_NAME
#
PREFAB_NOT_FOUND
#
PREFAB_REGISTRY_NOT_ATTACHED
#
RANDOM_EMPTY_ITEMS
#
WORLD_COMPONENT_DEPENDENCY_AMBIGUOUS
#
WORLD_COMPONENT_DEPENDENCY_MISSING
#
WORLD_COMPONENT_DEPENDENCY_REENTRANT
ESC