RegistrationError

exception RegistrationError(resolver: BaseResolver[X, Any], key: str, proposed: X, label: str)[source]

Raised when trying to add a new element to a resolver with a pre-existing lookup key.

Initialize the registration error.

Parameters:
  • resolver – The resolver where the registration error occurred

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

  • proposed – The proposed overwrite on the given key

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