Class CandidateAlreadyRegisteredException

  • All Implemented Interfaces:
    Serializable

    public class CandidateAlreadyRegisteredException
    extends Exception
    Thrown when a Candidate has already been registered for a given Entity. This could be due to a component doing a duplicate registration or two different components within the same process trying to register a Candidate.
    See Also:
    Serialized Form
    • Constructor Detail

      • CandidateAlreadyRegisteredException

        public CandidateAlreadyRegisteredException​(@NonNull GenericEntity<T> entity)
    • Method Detail

      • getEntity

        public <T extends Path<T>> @NonNull GenericEntity<T> getEntity()
        Gets the entity for which a Candidate has already been registered in the current process.
        Type Parameters:
        T - the instance identifier path type
        Returns:
        the entity.