Class CandidateAlreadyRegisteredException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.opendaylight.mdsal.eos.common.api.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 Summary
Constructors Constructor Description CandidateAlreadyRegisteredException(@NonNull GenericEntity<T> entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Path<T>>
@NonNull GenericEntity<T>getEntity()
Gets the entity for which a Candidate has already been registered in the current process.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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.
-
-