Class DuplicateNotAllowedException
An exception thrown when an operation attempts to create a duplicate in a collection with set semantics (C5.IExtensible`1.AllowsDuplicates is false) or attempts to create a duplicate key in a dictionary.
With collections this can only happen with Insert operations on lists, since the Add operations will not try to create duplictes and either ignore the failure or report it in a bool return value.
With dictionaries this can happen with the C5.IDictionary`2.Add(`0,`1) metod.
Inheritance
System.Object
DuplicateNotAllowedException
Assembly: DistributedLucene.Net.dll
Syntax
public class DuplicateNotAllowedException : Exception
Constructors
Name | Description |
---|---|
DuplicateNotAllowedException() | Create a simple exception with no further explanation. |
DuplicateNotAllowedException(SerializationInfo, StreamingContext) | Initializes a new instance of this class with serialized data. |
DuplicateNotAllowedException(String) | Create the exception with an explanation of the reason. |