magic_utils.exceptions package

Submodules

magic_utils.exceptions.registryExceptions module

exception magic_utils.exceptions.registryExceptions.DuplicateKeyError(message: str = None, registry_name: str = 'BaseRegistry', duplicate_item: Hashable = '')[source]

Bases: RegistryError

Custom exception raised when there is an attempt to register a duplicate entry. Inherits from RegistryError and adds specific behavior for duplicate errors.

exception magic_utils.exceptions.registryExceptions.MissingKeyError(message: str = None, registry_name: str = 'BaseRegistry', missing_key: Hashable = '')[source]

Bases: RegistryError

Custom exception raised when a requested entry is not found in the registry. Inherits from RegistryError and adds specific behavior for not registered errors.

exception magic_utils.exceptions.registryExceptions.RegistryError(message: str, registry_name: str = 'BaseRegistry')[source]

Bases: Exception

Custom exception raised when there is an error in registering data.

Module contents