RegistrationError
- exception RegistrationError(resolver, key, proposed, label)[source]
Raised when trying to add a new element to a resolver with a pre-existing lookup key.
Initialize the registration error.
- Parameters:
resolver (
BaseResolver
[TypeVar
(X
),TypeVar
(Y
)]) – The resolver where the registration error occurredkey (
str
) – The key (either in thelookup_dict
orsynonyms
) where the conflict occurredproposed (
TypeVar
(X
)) – The proposed overwrite on the given keylabel (
str
) – The origin of the error (either “name” or “synonym”)