Class DuplicateNotAllowedException
An exception thrown when an operation attempts to create a duplicate in a collection with set semantics
(C5.
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.
Inheritance
System.Object
DuplicateNotAllowedException
Namespace: Lucene.Net.Support.C5
Assembly: Lucene.Net.dll
Syntax
public class DuplicateNotAllowedException : Exception
Constructors
| Improve this Doc View SourceDuplicateNotAllowedException()
Create a simple exception with no further explanation.
Declaration
public DuplicateNotAllowedException()
DuplicateNotAllowedException(String)
Create the exception with an explanation of the reason.
Declaration
public DuplicateNotAllowedException(string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
message |