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.

  • resolver (BaseResolver[TypeVar(X), TypeVar(Y)]) – The resolver where the registration error occurred

  • key (str) – The key (either in the lookup_dict or synonyms) where the conflict occurred

  • proposed (TypeVar(X)) – The proposed overwrite on the given key

  • label (str) – The origin of the error (either “name” or “synonym”)