Class DuplicateKeyException
Exception for signalling duplicate key errors.
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Kephas.Data
Assembly: Kephas.Core.dll
Syntax
public class DuplicateKeyException : DataException, ISerializable, ISeverityQualifiedException
Constructors
| Improve this Doc View SourceDuplicateKeyException()
Initializes a new instance of the DuplicateKeyException class.
Declaration
public DuplicateKeyException()
DuplicateKeyException(String)
Initializes a new instance of the DuplicateKeyException class.
Declaration
public DuplicateKeyException(string keyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | keyName | The name of the key. |
DuplicateKeyException(String, String)
Initializes a new instance of the DuplicateKeyException class.
Declaration
public DuplicateKeyException(string keyName, string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | keyName | The name of the key. |
System.String | message | The message. |
DuplicateKeyException(String, String, Exception)
Initializes a new instance of the DuplicateKeyException class.
Declaration
public DuplicateKeyException(string keyName, string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | keyName | The name of the key. |
System.String | message | The message. |
System.Exception | inner | The inner exception. |
Properties
| Improve this Doc View SourceKeyName
Gets the name of the key.
Declaration
public string KeyName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the key. |
Implements
System.Runtime.Serialization.ISerializable